public static class Instrumentation.Cron extends Object
This class is not thread safe, it does not need to be.
It keeps track of the total time (first start to last stop) and the running time (total time minus the stopped intervals).
Once a Cron is complete it must be added to the corresponding group/name in a Instrumentation instance.
Constructor and Description |
---|
Cron()
Creates new Cron, stopped, in zero.
|
Modifier and Type | Method and Description |
---|---|
long |
getEnd()
Return the end time of the cron.
|
long |
getOwn()
Return the own time of the cron.
|
long |
getStart()
Return the start time of the cron.
|
long |
getTotal()
Return the total time of the cron.
|
void |
start()
Start the cron.
|
void |
stop()
Stops the cron.
|
public Cron()
public void start()
public void stop()
public long getStart()
public long getEnd()
public long getTotal()
public long getOwn()
Copyright © 2018 Apache Software Foundation. All rights reserved.