public class TicToc extends Object
TicToc
allows measuring elapsed time between a call to tic()
and a call to toc()
. Retrieving elapsed time is done by calling
either: elapsedNanosecond()
, elapsedMilisecond()
or elapsedSecond()
.Timer}
Modifier and Type | Field and Description |
---|---|
protected long |
start |
protected long |
stop |
static TicToc |
T |
Constructor and Description |
---|
TicToc() |
Modifier and Type | Method and Description |
---|---|
double |
elapsedMicrosecond() |
double |
elapsedMilisecond() |
long |
elapsedNanosecond() |
double |
elapsedSecond() |
long |
getStart() |
long |
getStop() |
long |
rawToc() |
void |
tic() |
double |
toc()
return time in second
|
double |
tocShow(String message) |
public static TicToc T
protected long start
protected long stop
public void tic()
public double toc()
public double tocShow(String message)
public long rawToc()
public long elapsedNanosecond()
public double elapsedMicrosecond()
public double elapsedMilisecond()
public double elapsedSecond()
public long getStart()
public long getStop()
Copyright © 2016. All rights reserved.