public static class Watch.TimeInterval extends Object implements Comparable<Watch.TimeInterval>
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected long |
t0 |
protected long |
t1 |
Constructor and Description |
---|
TimeInterval(String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Watch.TimeInterval o) |
long |
elapsed()
Elapsed time in nano seconds
|
long |
elapsed(TimeUnit unit) |
String |
formatSeconds() |
String |
getName() |
boolean |
isStopped() |
protected void |
start() |
protected void |
stop() |
String |
toString() |
public TimeInterval(String name)
public long elapsed()
protected void start()
protected void stop()
public boolean isStopped()
public int compareTo(Watch.TimeInterval o)
compareTo
in interface Comparable<Watch.TimeInterval>
public String formatSeconds()
Copyright © 2019 Nuxeo. All rights reserved.