csp::Time Struct Reference
[The Time Functions]


Detailed Description

C++CSP2 uses this typedef to represent times for the purposes of timeouts and waits.

On Windows it is a LARGE_INTEGER, for use with the QueryPerformance functions. On Posix operating systems, Time is a timeval and uses gettimeofday. The effective resolution of the timer depends on the underlying machine and operating system, so C++CSP2 can offer no guarantees about precision.

In particular, these timing mechanisms should not be used for hard real-time applications where precise timing is critical. That said, they should work well for most purposes. After all, neither Windows nor standard Linux are OSes that are intended for hard real-time applications.

The following binary operators are defined for Time:

+  -  <  >  <=  >=  ==  != 
The following assignment-like operators are defined for Time:
+=  -= 

All of those operators are defined in the global namespace, not in namespace csp


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