#include <stop_watch.H>
Inheritance diagram for egg_timer:
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 |
Definition at line 116 of file stop_watch.H.
|
Definition at line 118 of file stop_watch.H. |
|
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(). |
|
|
Definition at line 123 of file stop_watch.H. References remaining(). |
|
Definition at line 69 of file stop_watch.H. References stop_watch::elapsed_time(), and stop_watch::set_elapsed_time(). Referenced by Animator::step(). |
|
Definition at line 41 of file stop_watch.H. References stop_watch::_is_paused. Referenced by Animator::step(). |
|
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(). |
|
Definition at line 45 of file stop_watch.H. References stop_watch::_pause_time. |
|
Definition at line 100 of file stop_watch.H. References stop_watch::elapsed_time(), and err_msg(). Referenced by main(). |
|
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(). |
|
Definition at line 120 of file stop_watch.H. References _duration, and stop_watch::set(). Referenced by DEBUG_ELLIPSE::set(), and DrawWidget::set_timeout(). |
|
Definition at line 92 of file stop_watch.H. References stop_watch::pause(), and stop_watch::set_elapsed_time(). Referenced by Animator::Animator(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 44 of file stop_watch.H. References stop_watch::_start_time. |
|
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(). |
|
Definition at line 126 of file stop_watch.H. Referenced by remaining(), and reset(). |
|
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(). |
|
Definition at line 106 of file stop_watch.H. Referenced by stop_watch::cur_time(), stop_watch::pause(), and stop_watch::pause_time(). |
|
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(). |