railo.runtime.timer
Class Stopwatch
java.lang.Object
railo.runtime.timer.Stopwatch
public class Stopwatch
- extends Object
Implementation of a simple Stopwatch
UNIT_MILLI
public static final int UNIT_MILLI
- See Also:
- Constant Field Values
UNIT_NANO
public static final int UNIT_NANO
- See Also:
- Constant Field Values
Stopwatch
public Stopwatch(int unit)
start
public void start()
- start the watch
stop
public long stop()
- stops the watch
- Returns:
- returns the current time or 0 if watch not was running
time
public long time()
- Returns:
- returns the current time or 0 if watch is not running
totalTime
public long totalTime()
- Returns:
- returns the total elapsed time
count
public int count()
- Returns:
- returns how many start and stop was making
reset
public void reset()
- resets the stopwatch
Copyright © 2012 Railo