YANE-Framework 1.1.0
Public Member Functions | Protected Attributes

yane::Utils::RTClock Class Reference

Timer class.

Inheritance diagram for yane::Utils::RTClock:
[legend]
Collaboration diagram for yane::Utils::RTClock:
[legend]

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 ()
 Constructor.
void setElapsedSeconds (double seconds)
 Sets the elapsed seconds of this object to a specific value.
virtual ~RTClock ()
 Destructor.

Protected Attributes

timeval _starttime
 Initial time for timer.

Member Function Documentation

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