public static class Watch.TimeInterval extends Object implements Comparable<Watch.TimeInterval>
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() |
protected void |
start() |
protected void |
stop() |
String |
toString() |
public TimeInterval(String name)
public long elapsed()
protected void start()
protected void stop()
public int compareTo(Watch.TimeInterval o)
compareTo
in interface Comparable<Watch.TimeInterval>
public String formatSeconds()
Copyright © 2017 Nuxeo. All rights reserved.