tmf: Split "CTF adaptor" into separate plugins/feature
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ctf.core / src / org / eclipse / linuxtools / tmf / ctf / core / CtfTmfTimestamp.java
1 /*******************************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ctf.core;
14
15 import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp;
16 import org.eclipse.linuxtools.tmf.core.timestamp.TmfTimestamp;
17
18 /**
19 * The CTF adapter for the TMF timestamp. It's basically the same as a
20 * TmfTimestamp, but the scale is always nanoseconds, and the precision is 0.
21 *
22 * @version 1.2
23 * @author Matthew khouzam
24 */
25 public final class CtfTmfTimestamp extends TmfTimestamp {
26
27 /**
28 * Constructor for CtfTmfTimestamp.
29 *
30 * @param timestamp
31 * The timestamp value (in nanoseconds)
32 */
33 public CtfTmfTimestamp(long timestamp) {
34 super(timestamp, ITmfTimestamp.NANOSECOND_SCALE, 0);
35 }
36
37 }
This page took 0.030385 seconds and 5 git commands to generate.