Time conversion functions. More...
Functions | |
| size_t | milliseconds (size_t ms) |
| Create a time lapse from a given amount of milliseconds. | |
| size_t | seconds (double s) |
| Create a time lapse from a given amount of seconds. | |
| size_t | minutes (double m) |
| Create a time lapse from a given amount of minutes. | |
| size_t | hours (double h) |
| Create a time lapse from a given amount of hours. | |
| size_t | days (double d) |
| Create a time lapse from a given amount of days. | |
Time conversion functions.
| size_t ana::time::days | ( | double | d | ) | [inline] |
Create a time lapse from a given amount of days.
| d | : Hours of elapsed time. |
Definition at line 93 of file timers.hpp.
References hours().
Referenced by operator<<().


| size_t ana::time::hours | ( | double | h | ) | [inline] |
Create a time lapse from a given amount of hours.
| h | : Hours of elapsed time. |
Definition at line 84 of file timers.hpp.
References minutes().
Referenced by days(), and operator<<().


| size_t ana::time::milliseconds | ( | size_t | ms | ) | [inline] |
Create a time lapse from a given amount of milliseconds.
| ms | : Milliseconds of elapsed time, must be a positive integer value. |
Definition at line 57 of file timers.hpp.
Referenced by ana_multiple_receive_handler::wait_completion(), and ana_receive_handler::wait_completion().

| size_t ana::time::minutes | ( | double | m | ) | [inline] |
Create a time lapse from a given amount of minutes.
| m | : Minutes of elapsed time. |
Definition at line 75 of file timers.hpp.
References seconds().
Referenced by hours(), and operator<<().


| size_t ana::time::seconds | ( | double | s | ) | [inline] |
Create a time lapse from a given amount of seconds.
| s | : Seconds of elapsed time. |
Definition at line 66 of file timers.hpp.
Referenced by ana_network_manager::create_client_and_connect(), minutes(), operator<<(), ChatClient::parse_command(), and ChatClient::run().

| Generated by doxygen 1.7.1 on Fri May 25 2012 01:18:04 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |