Main Page | Class List | File List | Class Members | File Members | Related Pages

GiStopWatch Struct Reference

#include <gi_time.h>

List of all members.

Public Attributes

bool active
double elapsed
timeval start


Detailed Description

Simple stopwatch-esque interface for determining the amount of time elapsed between two source lines.


Member Data Documentation

bool GiStopWatch::active
 

Specifies whether or not the timer is actively running. The timer is said to be active at all points after the call to ::gi_timer_start and before ::gi_timer_stop. The activity of a timer is undefined prior to the first call to ::gi_timer_init.

double GiStopWatch::elapsed
 

Total time elapsed prior to the most recent call to ::gi_timer_start. This is used to persist the amount of elapsed time if the timer is often started and stopped during it's lifetime.

struct timeval GiStopWatch::start
 

Time at which the timer was last activated (via ::gi_timer_start). The difference between the current time (or stop) and start at any time does not necessarily represent the total time the timer has been running.


The documentation for this struct was generated from the following file:
Generated on Sun Aug 22 07:56:41 2004 by doxygen 1.3.7