public class SimpleTimer extends Object implements Instrument
| Constructor and Description |
|---|
SimpleTimer(String name) |
SimpleTimer(String name,
Duration duration) |
SimpleTimer(String name,
long nanoSeconds)
Create a new split with a load time in nanoseconds.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Instrument instrument) |
void |
end() |
Duration |
getDuration() |
String |
getName() |
long |
getValue() |
void |
start() |
public SimpleTimer(String name)
public SimpleTimer(String name, long nanoSeconds)
name - The operationnanoSeconds - The number of nanoseconds.public String getName()
getName in interface Instrumentpublic long getValue()
getValue in interface Instrumentpublic void start()
public void end()
public Duration getDuration()
public int compareTo(Instrument instrument)
compareTo in interface Comparable<Instrument>Copyright © 2016 Atlassian. All rights reserved.