Commit | Line | Data |
---|---|---|
b0f9e44d | 1 | /******************************************************************************* |
61759503 | 2 | * Copyright (c) 2012, 2013 Ericsson |
b0f9e44d MK |
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 | * | |
1c5a6a8f AM |
9 | * Contributors: |
10 | * Matthew Khouzam - Initial API and implementation | |
b0f9e44d MK |
11 | *******************************************************************************/ |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ctf.core; |
ce2388e0 | 14 | |
2bdf0193 AM |
15 | import org.eclipse.tracecompass.tmf.core.timestamp.ITmfTimestamp; |
16 | import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp; | |
ce2388e0 | 17 | |
b1baa808 | 18 | /** |
1c5a6a8f AM |
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. | |
9b749023 | 21 | * |
1c5a6a8f | 22 | * @version 1.2 |
d09f973b | 23 | * @author Matthew khouzam |
b1baa808 | 24 | */ |
1c5a6a8f | 25 | public final class CtfTmfTimestamp extends TmfTimestamp { |
ce2388e0 | 26 | |
b1baa808 MK |
27 | /** |
28 | * Constructor for CtfTmfTimestamp. | |
1c5a6a8f AM |
29 | * |
30 | * @param timestamp | |
31 | * The timestamp value (in nanoseconds) | |
b1baa808 | 32 | */ |
b0f9e44d | 33 | public CtfTmfTimestamp(long timestamp) { |
4593bd5b | 34 | super(timestamp, ITmfTimestamp.NANOSECOND_SCALE, 0); |
b1baa808 MK |
35 | } |
36 | ||
ce2388e0 | 37 | } |