AnimaL |
Tutorial |
Documentation |
#include <chrono.h>
This is useful to calculate the frame rate of an animation.
Definition at line 32 of file chrono.h.
Public Member Functions | |
| Chrono () | |
| constructor | |
| double | reset () |
| stop and reset the chronometer | |
| double | stop () |
| stop chronometer | |
| double | go () |
| Start chronometer. | |
| double | get_time () const |
| Give the time value of the chronometer (in seconds). | |
| std::ostream & | write (std::ostream &os) const |
| Text output. | |
Static Public Member Functions | |
| double | get_system_time () |
| Give the system time (in seconds). | |
| long | get_system_second () |
| Give seconds of the system time (in seconds). | |
| long | get_system_microsecond () |
| Give milliseconds of the system time. | |
Private Attributes | |
| double | last_action_val |
| bool | etat |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Chrono &obj) |
| Text output (operator <<). | |
|
|
constructor
Definition at line 55 of file chrono.h. References etat, and last_action_val. |
|
|
Give milliseconds of the system time.
|
|
|
Give seconds of the system time (in seconds).
|
|
|
Give the system time (in seconds).
Definition at line 120 of file chrono.h. Referenced by get_time(), and go(). |
|
|
Give the time value of the chronometer (in seconds).
Definition at line 104 of file chrono.h. References etat, get_system_time(), and last_action_val. |
|
|
Start chronometer.
Definition at line 88 of file chrono.h. References etat, get_system_time(), get_time(), and last_action_val. |
|
|
stop and reset the chronometer
Definition at line 61 of file chrono.h. References etat, get_time(), and last_action_val. |
|
|
stop chronometer
Definition at line 73 of file chrono.h. References etat, get_time(), and last_action_val. |
|
|
Text output.
Definition at line 152 of file chrono.h. References get_time(). |
|
||||||||||||
|
Text output (operator <<).
|
|
|
If etat==true, the chronometer is running and last_action_val is the system time value of the last "go". Definition at line 44 of file chrono.h. Referenced by Chrono(), get_time(), go(), reset(), and stop(). |
|
|
last useful value (the meaning depends on the value of etat). Definition at line 40 of file chrono.h. Referenced by Chrono(), get_time(), go(), reset(), and stop(). |
1.3.6