|
PIP
0.4.0_beta2
Platform-Independent Primitives
|
Time structs. More...
Classes | |
| class | PISystemTime |
| System time. More... | |
Functions | |
| void | msleep (int msecs) |
| Sleep for "msecs" milliseconds. | |
| void | piUSleep (int usecs) |
| Precise sleep for "usecs" microseconds. More... | |
| void | piMSleep (int msecs) |
| Precise sleep for "msecs" milliseconds. More... | |
| PICout | operator<< (PICout s, const PISystemTime &v) |
| Output operator to PICout. | |
| PIByteArray & | operator<< (PIByteArray &s, const PISystemTime &v) |
| Output operator to PIByteArray. | |
| PIByteArray & | operator>> (PIByteArray &s, PISystemTime &v) |
| Input operator from PIByteArray. | |
| PISystemTime | currentSystemTime () |
| Returns current system time. | |
Time structs.
| void piUSleep | ( | int | usecs | ) |
Precise sleep for "usecs" microseconds.
This function consider "usleep" offset on QNX/Linux/Mac, which is calculated with pip_sys_test program. If there is correct offset value in system config, this function wait exactly "usecs" microseconds.
|
inline |
Precise sleep for "msecs" milliseconds.
This function exec piUSleep (msecs * 1000).