jp.go.aist.rtm.RTC
Class TimeMeasure

java.lang.Object
  extended by jp.go.aist.rtm.RTC.TimeMeasure

public class TimeMeasure
extends java.lang.Object

TimeMeasure class

This class is used for getting statistics of code execution time. Using get_stat you can get maximum, minimum, mean and standard deviation time for code execution.


Nested Class Summary
 class TimeMeasure.Statistics
           Class for time statistics
 
Constructor Summary
TimeMeasure()
           Constructor
TimeMeasure(int buflen)
           Constructor
 
Method Summary
 int count()
           Get number of time measurement buffer
 TimeMeasure.Statistics createStatistics()
           Creation of Statistics class.
 TimeMeasure.Statistics getStatistics()
           Get statistics result
 boolean getStatistics(TimeMeasure.Statistics s)
           Get total statistics
 TimeValue interval()
           Get a interval time
 void reset()
           Initialize for statistics related data
 void tack()
           Finish time measurement for time statistics
 void tick()
           Begin time measurement for time statistics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeMeasure

public TimeMeasure(int buflen)
Constructor

Time Statistics object for profiling.


TimeMeasure

public TimeMeasure()
Constructor

Time Statistics object for profiling.

Method Detail

tick

public void tick()
Begin time measurement for time statistics.


tack

public void tack()
Finish time measurement for time statistics

End of time measurement for time statistics.


interval

public TimeValue interval()
Get a interval time

Returns:
TimeValue object

reset

public void reset()
Initialize for statistics related data


count

public int count()
Get number of time measurement buffer

Returns:
Measurement count

getStatistics

public boolean getStatistics(TimeMeasure.Statistics s)
Get total statistics

Parameters:
s - Statistics Class
Returns:
true: Data found, false: Data not found

getStatistics

public TimeMeasure.Statistics getStatistics()
Get statistics result

Returns:
Statistics result

createStatistics

public TimeMeasure.Statistics createStatistics()
Creation of Statistics class.

Creates Statistics class.