Timer Class Reference

#include <bctimer.h>

Public Member Functions

 Timer ()
virtual ~Timer ()
int update ()
int64_t get_difference (struct timeval *result)
int64_t get_difference ()
int64_t get_scaled_difference (long denominator)

Static Public Member Functions

static int delay (long milliseconds)

Private Attributes

struct timeval current_time
struct timeval new_time
struct timeval delay_duration

Detailed Description

Definition at line 8 of file bctimer.h.

Constructor & Destructor Documentation

Timer::Timer (  ) 

Definition at line 6 of file bctimer.C.

References update().

Here is the call graph for this function:

Timer::~Timer (  )  [virtual]

Definition at line 11 of file bctimer.C.

Member Function Documentation

int Timer::update (  ) 

int64_t Timer::get_difference ( struct timeval *  result  ) 

int64_t Timer::get_difference (  ) 

Definition at line 36 of file bctimer.C.

References current_time, and new_time.

Referenced by get_scaled_difference().

int64_t Timer::get_scaled_difference ( long  denominator  ) 

int Timer::delay ( long  milliseconds  )  [static]

Field Documentation

struct timeval Timer::current_time [read, private]

Definition at line 27 of file bctimer.h.

Referenced by get_difference(), and update().

struct timeval Timer::new_time [read, private]

Definition at line 28 of file bctimer.h.

Referenced by get_difference(), and get_scaled_difference().

struct timeval Timer::delay_duration [read, private]

Definition at line 29 of file bctimer.h.

The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:46:05 2008 for Cinelerra by  doxygen 1.5.5