1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made 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
10 * Francois Chouinard - Initial API and implementation
11 * Patrick Tasse - Modified from TmfSimpleTimestamp to use nanosecond scale
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.tmf
.core
.timestamp
;
17 * A simplified timestamp where scale is nanoseconds and precision is set to 0.
19 public final class TmfNanoTimestamp
extends TmfTimestamp
{
21 private final long fValue
;
23 // ------------------------------------------------------------------------
25 // ------------------------------------------------------------------------
28 * Default constructor (value = 0)
30 public TmfNanoTimestamp() {
40 public TmfNanoTimestamp(final long value
) {
45 public long getValue() {
51 public int getScale() {
52 return ITmfTimestamp
.NANOSECOND_SCALE
;
59 public long toNanos() {
This page took 0.038881 seconds and 5 git commands to generate.