src/time.h File Reference


Detailed Description

The header file for the Time classes and functions.


Namespaces

namespace  csp

Classes

struct  csp::Time
 C++CSP2 uses this typedef to represent times for the purposes of timeouts and waits. More...

Functions

Time csp::CurrentTime ()
 Gets the current time.
void csp::CurrentTime (Time *const val)
 Gets the current time.
csp::sign32 csp::GetMilliSeconds (const Time &val)
 Gets the number of milliseconds (truncated) in the specified time.
double csp::GetSeconds (const Time *val)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Included for compatibility with C++CSP v1.x.
double csp::GetSeconds (const Time &val)
 Gets the number of seconds from the specified Time.
Time csp::MicroSeconds (const long micros)
 Puts the specified integer amount of microseconds into a Time structure.
void csp::MicroSeconds (const long micros, Time *const val)
 Puts the specified integer amount of microseconds into a Time structure.
Time csp::MilliSeconds (const long millis)
 Puts the specified integer amount of milliseconds into a Time structure.
void csp::MilliSeconds (const long millis, Time *const val)
 Puts the specified integer amount of milliseconds into a Time structure.
Time csp::Seconds (const double secs)
 Puts the specified floating-point amount of seconds into a Time structure.
void csp::Seconds (const double secs, Time *const val)
 Puts the specified floating-point amount of seconds into a Time structure.
void csp::SleepFor (const Time &timeToSleepFor)
 Makes the current process sleep for the specified amount of time.
void csp::SleepUntil (const Time &timeToSleepUntil)
 Makes the current process sleep for the specified amount of time.


Generated on Mon Aug 20 12:24:28 2007 for C++CSP2 by  doxygen 1.4.7