MetaDone
metadone.util.Chrono Class Reference

List of all members.

Public Member Functions

 Chrono ()
Chrono start ()
Chrono pause ()
Chrono reset ()
long getElapsed (TimeUnit unit)
boolean isRunning ()
String getElapsedSeconds ()
String getElapsedMilliSeconds ()

Static Public Member Functions

static void main (String[] args)

Private Attributes

boolean running
long t_start

Detailed Description

Can be used to mesure the time elapsed between events.

Author:
Vincent
kma

Constructor & Destructor Documentation

metadone.util.Chrono.Chrono ( )

Member Function Documentation

long metadone.util.Chrono.getElapsed ( TimeUnit  unit)

Gets the elapsed time.

Parameters:
unitThe unit
Returns:
The elapsed time

References metadone.util.Chrono.running, and metadone.util.Chrono.t_start.

Referenced by metadone.util.Chrono.getElapsedMilliSeconds(), metadone.util.Chrono.getElapsedSeconds(), and metadone.util.Chrono.pause().

String metadone.util.Chrono.getElapsedMilliSeconds ( )
boolean metadone.util.Chrono.isRunning ( )

Indicates whether the chrono is running or paused.

Returns:
the status (started or not started).

References metadone.util.Chrono.running.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations