Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

gr_timer Class Reference

#include <gr_timer.h>

List of all members.


Detailed Description

implement timeouts


Public Member Functions

 ~gr_timer ()
void schedule_at (double abs_when)
 schedule timer to fire at abs_when
void schedule_after (double rel_when)
 schedule timer to fire rel_when seconds from now.
void schedule_periodic (double abs_when, double period)
 schedule a periodic timeout.
void unschedule ()
 cancel timer

Static Public Member Functions

static double now ()
 return absolute current time (seconds since the epoc).

Friends

gr_timer_sptr gr_make_timer (gr_timer_hook, void *)
 create a timeout.


Constructor & Destructor Documentation

gr_timer::~gr_timer  ) 
 


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  ) 
 

cancel timer


Friends And Related Function Documentation

gr_timer_sptr gr_make_timer gr_timer_hook  ,
void * 
[friend]
 

create a timeout.

gr_timer_hook is called when timer fires.


The documentation for this class was generated from the following file:
Generated on Sat Jul 8 17:14:33 2006 for GNU Radio 2.x by  doxygen 1.4.1