class MTimer

This class is designed to measure time in micro-seconds

Inheritance:


Public Fields

[more]int hours
hours
[more]int minutes
minutes
[more]int seconds
seconds
[more]int mseconds
milliseconds
[more]int useconds
microseconds
[more]int nseconds
nanoseconds

Public Methods

[more] MTimer()
create the timer
[more]virtual ~MTimer()
[more]void reset()
reset the timer
[more]long long stop()
stop the timer and return the total accumulated time
[more]long long getRunTime()
return the total accumulated time
[more]long long computeDelta(long long current_time_, long long previous_time_)
compute the time difference


Documentation

This class is designed to measure time in micro-seconds

oint hours
hours

oint minutes
minutes

oint seconds
seconds

oint mseconds
milliseconds

oint useconds
microseconds

oint nseconds
nanoseconds

o MTimer()
create the timer

ovirtual ~MTimer()

ovoid reset()
reset the timer

The timer will count time starting from now, and the accumulated time is erased.

olong long stop()
stop the timer and return the total accumulated time

olong long getRunTime()
return the total accumulated time

olong long computeDelta(long long current_time_, long long previous_time_)
compute the time difference


This class has no child classes.
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Wed 28 Jun 2006 05:19:37 PM CEST
Since:
2.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.