public final class Timing extends java.lang.Object implements TrueStatic
An interface to native class allowing to measure the time with high resolution.
Modifier and Type | Field and Description |
---|---|
static long |
timecpuCorrection |
static long |
timensCorrection |
static long |
timeStart |
static long |
timeStartFrom1970 |
Modifier and Type | Method and Description |
---|---|
static void |
decreaseTimeStart(long decrement) |
static long |
diffcpu(long t1) |
static double |
diffcpu(long t1,
double divider) |
static long |
diffcpu(long t1,
long t2) |
static double |
diffcpu(long t1,
long t2,
double divider) |
static long |
diffns(long t1) |
static double |
diffns(long t1,
double divider) |
static long |
diffns(long t1,
long t2) |
static double |
diffns(long t1,
long t2,
double divider) |
static java.lang.String |
initializationExceptionMessage() |
static boolean |
isNative() |
static boolean |
isTimecpuSupported() |
static long |
timecpu() |
static long |
timemcs() |
static double |
timemcsDouble() |
static long |
timems() |
static double |
timemsDouble() |
static long |
timens() |
static double |
timesecDouble() |
static java.lang.String |
uniqueString()
Returns a string that is unique for every call of this method
with very high probability (almost 100%).
|
public static long timeStart
public static final long timeStartFrom1970
public static final long timensCorrection
public static final long timecpuCorrection
public static void decreaseTimeStart(long decrement)
public static long timems()
public static long timemcs()
public static long timens()
public static boolean isTimecpuSupported()
public static long timecpu()
public static double timesecDouble()
public static double timemsDouble()
public static double timemcsDouble()
public static long diffns(long t1, long t2)
public static long diffns(long t1)
public static double diffns(long t1, long t2, double divider)
public static double diffns(long t1, double divider)
public static long diffcpu(long t1, long t2)
public static long diffcpu(long t1)
public static double diffcpu(long t1, long t2, double divider)
public static double diffcpu(long t1, double divider)
public static java.lang.String uniqueString()
public static boolean isNative()
public static java.lang.String initializationExceptionMessage()