Timer Class Reference

Inheritance diagram for Timer:

PlaybackTimer List of all members.

Detailed Description

this class sets up a timer.

the timer will attempt to maintain a specific frequency.

Definition at line 476 of file Time.H.

Public Member Functions

 Timer ()
void setFrequency (float freq)
void setSleepInterval (struct timespec interval)
void setMinSleep (float min)
virtual void sleep ()

Protected Attributes

float m_freq
Time m_minSleep
Time m_lastSleep
Time m_current
Time m_sleepInterval
timespec m_sleeptime

Constructor & Destructor Documentation

Timer (  )  [inline]

Definition at line 478 of file Time.H.

References Timer::m_lastSleep, and Time::now().

Member Function Documentation

void setFrequency ( float  freq  )  [inline]

Definition at line 480 of file Time.H.

References Timer::m_sleepInterval, Time::setSeconds(), and Time::setUSeconds().

Referenced by WURDEPlaybackCamera::WURDEPlaybackCamera().

void setSleepInterval ( struct timespec  interval  )  [inline]

Definition at line 491 of file Time.H.

References Timer::m_sleepInterval.

void setMinSleep ( float  min  )  [inline]

Definition at line 494 of file Time.H.

References Timer::m_minSleep.

virtual void sleep (  )  [inline, virtual]

Reimplemented in PlaybackTimer.

Definition at line 496 of file Time.H.

References Timer::m_current, Timer::m_lastSleep, Timer::m_minSleep, Timer::m_sleepInterval, Timer::m_sleeptime, Time::now(), Time::timespec(), and Time::zero().

Member Data Documentation

float m_freq [protected]

Definition at line 518 of file Time.H.

Time m_minSleep [protected]

Definition at line 519 of file Time.H.

Referenced by Timer::setMinSleep(), PlaybackTimer::sleep(), and Timer::sleep().

Time m_lastSleep [protected]

Definition at line 521 of file Time.H.

Referenced by PlaybackTimer::sleep(), Timer::sleep(), and Timer::Timer().

Time m_current [protected]

Definition at line 522 of file Time.H.

Referenced by PlaybackTimer::sleep(), and Timer::sleep().

Time m_sleepInterval [protected]

Definition at line 523 of file Time.H.

Referenced by Timer::setFrequency(), Timer::setSleepInterval(), PlaybackTimer::sleep(), and Timer::sleep().

struct timespec m_sleeptime [protected]

Definition at line 524 of file Time.H.

Referenced by PlaybackTimer::sleep(), and Timer::sleep().

The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:31:56 2007 for WURDE by  doxygen 1.5.1