Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

egg_timer Class Reference

#include <stop_watch.H>

Inheritance diagram for egg_timer:

Inheritance graph
[legend]
Collaboration diagram for egg_timer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 egg_timer (double dur)
void reset (double dur)
double remaining () const
bool expired () const
bool is_paused () const
double start_time () const
double pause_time () const
double cur_time () const
double elapsed_time () const
void set (double start=sys_time())
void set_elapsed_time (double t=0)
void inc_elapsed_time (double d=0)
void pause ()
void resume ()
void reset_hold ()
void print_time (const char *msg="elapsed time")

Static Public Member Functions

static double sys_time ()

Protected Attributes

double _duration
double _start_time
double _pause_time
bool _is_paused

Detailed Description

Definition at line 116 of file stop_watch.H.


Constructor & Destructor Documentation

egg_timer::egg_timer double  dur  )  [inline]
 

Definition at line 118 of file stop_watch.H.


Member Function Documentation

double stop_watch::cur_time  )  const [inline, inherited]
 

Definition at line 51 of file stop_watch.H.

References stop_watch::_is_paused, stop_watch::_pause_time, and stop_watch::sys_time().

Referenced by stop_watch::elapsed_time(), and stop_watch::set_elapsed_time().

double stop_watch::elapsed_time  )  const [inline, inherited]
 

Definition at line 55 of file stop_watch.H.

References stop_watch::_start_time, and stop_watch::cur_time().

Referenced by Cam_int_fp::cruise_down(), Cam_int_fp::cruise_zoom_up(), GLUT_MANAGER::do_idle(), XToonTexture::draw(), fit(), BMESH::get_sil_strips(), BMESH::get_zcross_strips(), stop_watch::inc_elapsed_time(), Cam_int_fp::orbit_rot_up(), VIEW::paint(), Recorder::pre_draw_CB(), Animator::pre_draw_CB(), stop_watch::print_time(), Recorder::rec_pause(), remaining(), stop_watch::resume(), FPS::tick(), and Cam_int_fp::up().

bool egg_timer::expired  )  const [inline]
 

Definition at line 123 of file stop_watch.H.

References remaining().

void stop_watch::inc_elapsed_time double  d = 0  )  [inline, inherited]
 

Definition at line 69 of file stop_watch.H.

References stop_watch::elapsed_time(), and stop_watch::set_elapsed_time().

Referenced by Animator::step().

bool stop_watch::is_paused  )  const [inline, inherited]
 

Definition at line 41 of file stop_watch.H.

References stop_watch::_is_paused.

Referenced by Animator::step().

void stop_watch::pause  )  [inline, inherited]
 

Definition at line 72 of file stop_watch.H.

References stop_watch::_is_paused, stop_watch::_pause_time, and stop_watch::sys_time().

Referenced by Animator::press_stop(), and stop_watch::reset_hold().

double stop_watch::pause_time  )  const [inline, inherited]
 

Definition at line 45 of file stop_watch.H.

References stop_watch::_pause_time.

void stop_watch::print_time const char *  msg = "elapsed time"  )  [inline, inherited]
 

Definition at line 100 of file stop_watch.H.

References stop_watch::elapsed_time(), and err_msg().

Referenced by main().

double egg_timer::remaining  )  const [inline]
 

Definition at line 122 of file stop_watch.H.

References _duration, stop_watch::elapsed_time(), and max().

Referenced by DEBUG_ELLIPSE::alpha(), DrawWidget::alpha(), and expired().

void egg_timer::reset double  dur  )  [inline]
 

Definition at line 120 of file stop_watch.H.

References _duration, and stop_watch::set().

Referenced by DEBUG_ELLIPSE::set(), and DrawWidget::set_timeout().

void stop_watch::reset_hold  )  [inline, inherited]
 

Definition at line 92 of file stop_watch.H.

References stop_watch::pause(), and stop_watch::set_elapsed_time().

Referenced by Animator::Animator().

void stop_watch::resume  )  [inline, inherited]
 

Definition at line 82 of file stop_watch.H.

References stop_watch::_is_paused, stop_watch::elapsed_time(), and stop_watch::set_elapsed_time().

Referenced by Animator::press_play().

void stop_watch::set double  start = sys_time()  )  [inline, inherited]
 

Definition at line 61 of file stop_watch.H.

References stop_watch::_start_time.

Referenced by Recorder::activate(), Cam_int_fp::choose(), Cam_int_fp::cruise_down(), Cam_int_fp::cruise_zoom(), GLUT_MANAGER::do_idle(), Cam_int_fp::down(), FPS::FPS(), main(), Cam_int_fp::orbit_rot(), VIEW::paint(), Recorder::rec_pause(), Recorder::rec_play(), Recorder::rec_record(), Recorder::replay(), reset(), FPS::tick(), and CamCruise::travel().

void stop_watch::set_elapsed_time double  t = 0  )  [inline, inherited]
 

Definition at line 65 of file stop_watch.H.

References stop_watch::_start_time, and stop_watch::cur_time().

Referenced by stop_watch::inc_elapsed_time(), Animator::press_beginning(), stop_watch::reset_hold(), stop_watch::resume(), and Animator::toggle_activation().

double stop_watch::start_time  )  const [inline, inherited]
 

Definition at line 44 of file stop_watch.H.

References stop_watch::_start_time.

static double stop_watch::sys_time  )  [inline, static, inherited]
 

Definition at line 38 of file stop_watch.H.

References the_time().

Referenced by GESTURE::add(), GESTURE::age(), stop_watch::cur_time(), VIEW::paint(), and stop_watch::pause().


Member Data Documentation

double egg_timer::_duration [protected]
 

Definition at line 126 of file stop_watch.H.

Referenced by remaining(), and reset().

bool stop_watch::_is_paused [protected, inherited]
 

Definition at line 107 of file stop_watch.H.

Referenced by stop_watch::cur_time(), stop_watch::is_paused(), stop_watch::pause(), and stop_watch::resume().

double stop_watch::_pause_time [protected, inherited]
 

Definition at line 106 of file stop_watch.H.

Referenced by stop_watch::cur_time(), stop_watch::pause(), and stop_watch::pause_time().

double stop_watch::_start_time [protected, inherited]
 

Definition at line 105 of file stop_watch.H.

Referenced by stop_watch::elapsed_time(), stop_watch::set(), stop_watch::set_elapsed_time(), and stop_watch::start_time().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:45:16 2006 for jot by  doxygen 1.4.4