Functions

ana::time Namespace Reference

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.

Detailed Description

Time conversion functions.


Function Documentation

size_t ana::time::days ( double  d  )  [inline]

Create a time lapse from a given amount of days.

Parameters:
d : Hours of elapsed time.
Returns:
: A time duration amount (in milliseconds) to be used with timers.

Definition at line 93 of file timers.hpp.

References hours().

Referenced by operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ana::time::hours ( double  h  )  [inline]

Create a time lapse from a given amount of hours.

Parameters:
h : Hours of elapsed time.
Returns:
: A time duration amount (in milliseconds) to be used with timers.

Definition at line 84 of file timers.hpp.

References minutes().

Referenced by days(), and operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ana::time::milliseconds ( size_t  ms  )  [inline]

Create a time lapse from a given amount of milliseconds.

Parameters:
ms : Milliseconds of elapsed time, must be a positive integer value.
Returns:
: A time duration amount (in milliseconds) to be used with timers.

Definition at line 57 of file timers.hpp.

Referenced by ana_multiple_receive_handler::wait_completion(), and ana_receive_handler::wait_completion().

Here is the caller graph for this function:

size_t ana::time::minutes ( double  m  )  [inline]

Create a time lapse from a given amount of minutes.

Parameters:
m : Minutes of elapsed time.
Returns:
: A time duration amount (in milliseconds) to be used with timers.

Definition at line 75 of file timers.hpp.

References seconds().

Referenced by hours(), and operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

size_t ana::time::seconds ( double  s  )  [inline]

Create a time lapse from a given amount of seconds.

Parameters:
s : Seconds of elapsed time.
Returns:
: A time duration amount (in milliseconds) to be used with timers.

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().

Here is the caller graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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