implement timeouts
More...
#include <gr_timer.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
Member Function Documentation
static double gr_timer::now |
( |
| ) |
[static] |
return absolute current time (seconds since the epoc).
void gr_timer::schedule_after |
( |
double |
rel_when | ) |
|
schedule timer to fire rel_when seconds from now.
- Parameters:
-
rel_when | relative time in seconds from now. |
void gr_timer::schedule_at |
( |
double |
abs_when | ) |
|
schedule timer to fire at abs_when
- Parameters:
-
abs_when | absolute time in seconds since the epoc. |
void gr_timer::schedule_periodic |
( |
double |
abs_when, |
|
|
double |
period |
|
) |
| |
schedule a periodic timeout.
- Parameters:
-
abs_when | absolute time to fire first time |
period | time between firings |
void gr_timer::unschedule |
( |
| ) |
|
Friends And Related Function Documentation
create a timeout.
gr_timer_hook is called when timer fires.
The documentation for this class was generated from the following file: