YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::Utils::RTClock Class Reference

Timer class.

Inheritance diagram for yane::Utils::RTClock:
Collaboration diagram for yane::Utils::RTClock:

List of all members.

Public Member Functions

double elapsedSeconds ()
 Function to evaluate the passed time since start of the timer.
void getStartTime (timeval *time)
 Function to pass the initial time of the timer to external routines.
void reset ()
 Function to reset the timer.
void reset (const timeval &starttime)
 Function to reset the timer to a new initial time.
 RTClock ()
void setElapsedSeconds (double seconds)
 Sets the elapsed seconds of this object to a specific value.
virtual ~RTClock ()

Protected Attributes

timeval _starttime
 Initial time for timer.

Member Function Documentation

LIB_EXPORT void yane::Utils::RTClock::getStartTime ( timeval *  time)
timeInitial time of the timer
LIB_EXPORT void yane::Utils::RTClock::reset ( const timeval &  starttime)
starttimeInitial time for timer
LIB_EXPORT void yane::Utils::RTClock::setElapsedSeconds ( double  seconds)
secondsNew value for elapsed seconds
See also: