MityDSP Documentation Index

MityDSP::tcDspTimer Class Reference

This class is the MityDSP timer object. More...

#include <core/DspTimer.h>

List of all members.

Public Member Functions

 tcDspTimer ()
 This constructor is used to create a timer and initialize it's state to off.
 ~tcDspTimer ()
 Default destructor.
void set (int anDelta)
 This routine sets a timer with expiry anDelta ticks in the future.
bool expired (int *apRemaining=NULL)
 This routine checks the status of a timer, returning a boolean stating whether or not it has expired.
void cancel (void)
 This routine clears a timer by disabling it.
void sleep (void)
 This routine puts the calling thread to sleep until the timer expires.
bool enabled () const
 return true if timer is enabled

Detailed Description

This class is the MityDSP timer object.

See also:
tcDspTimer Page

Constructor & Destructor Documentation

tcDspTimer::tcDspTimer (  ) 

This constructor is used to create a timer and initialize it's state to off.

tcDspTimer::~tcDspTimer (  ) 

Default destructor.


Member Function Documentation

void tcDspTimer::set ( int  anDelta  ) 

This routine sets a timer with expiry anDelta ticks in the future.

Parameters:
[in] anDelta Set timer to expiry in low resolution clock ticks
Returns:
None.
bool tcDspTimer::expired ( int *  mnRemaining = NULL  ) 

This routine checks the status of a timer, returning a boolean stating whether or not it has expired.

If the optional int* is passed in, the time remaining until expiry is passed (and will be negative if past expiry).

Parameters:
[out] mnRemaining Amount of time remaining until expiry
Returns:
True if timer has expired.
void tcDspTimer::cancel ( void   ) 

This routine clears a timer by disabling it.

Returns:
None.
void tcDspTimer::sleep ( void   ) 

This routine puts the calling thread to sleep until the timer expires.

Returns:
None.
bool MityDSP::tcDspTimer::enabled (  )  const [inline]

return true if timer is enabled


  
Generated on Fri Sep 23 16:33:56 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.