org.objectweb.proactive.core.util.timer
Class MicroTimer

java.lang.Object
  extended byorg.objectweb.proactive.core.util.timer.MicroTimer
All Implemented Interfaces:
Timeable

public class MicroTimer
extends java.lang.Object
implements Timeable


Field Summary
 long endTime2
           
 long startTime2
           
 
Constructor Summary
MicroTimer()
           
 
Method Summary
 long[] currentTime()
           
 long getCumulatedTime()
          Return the newly computed cumulated time as measured by this MicroTimer in microseconds
 java.lang.String getUnit()
           
static void main(java.lang.String[] args)
           
 void start()
           
 void stop()
          Stop the timer and returns the cumulated time
protected  long[] updateCumulatedTime(long[] t1, long[] t2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime2

public long startTime2

endTime2

public long endTime2
Constructor Detail

MicroTimer

public MicroTimer()
Method Detail

currentTime

public long[] currentTime()

start

public void start()
Specified by:
start in interface Timeable

stop

public void stop()
Stop the timer and returns the cumulated time

Specified by:
stop in interface Timeable

getCumulatedTime

public long getCumulatedTime()
Return the newly computed cumulated time as measured by this MicroTimer in microseconds

Specified by:
getCumulatedTime in interface Timeable

updateCumulatedTime

protected long[] updateCumulatedTime(long[] t1,
                                     long[] t2)

getUnit

public java.lang.String getUnit()
Specified by:
getUnit in interface Timeable

main

public static void main(java.lang.String[] args)


Copyright ? April 2005 INRIA All Rights Reserved.