GNU Radio 3.6.5 C++ API

gr_timer Class Reference

implement timeouts More...

#include <gr_timer.h>

List of all members.

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_CORE_API gr_timer_sptr gr_make_timer (gr_timer_hook, void *)
 create a timeout.

Detailed Description

implement timeouts


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_whenrelative time in seconds from now.
void gr_timer::schedule_at ( double  abs_when)

schedule timer to fire at abs_when

Parameters:
abs_whenabsolute time in seconds since the epoc.
void gr_timer::schedule_periodic ( double  abs_when,
double  period 
)

schedule a periodic timeout.

Parameters:
abs_whenabsolute time to fire first time
periodtime between firings
void gr_timer::unschedule ( )

cancel timer


Friends And Related Function Documentation

GR_CORE_API 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: