ariba.util.core
Interface Stopwatch


public interface Stopwatch


Method Summary
 boolean isRunning()
           
 int resolutionLevel()
           
 long runningTime()
          Current elapsed time of a running timer
 void start()
          Start the stopwatch.
 long stop()
          Stop the stopwatch.
 

Method Detail

start

void start()
Start the stopwatch.


stop

long stop()
Stop the stopwatch.

Returns:
time in microseconds

isRunning

boolean isRunning()
Returns:
true if start has been called, and stop has not been called since

runningTime

long runningTime()
Current elapsed time of a running timer

Returns:
time in microseconds

resolutionLevel

int resolutionLevel()
Returns:
number of decimal places to store when counting seconds.


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.