Module libpulse_binding::timeval
[−]
[src]
Utility functions for handling timeval calculations.
Constants
| MSEC_PER_SEC |
The number of milliseconds in a second |
| NSEC_PER_MSEC |
The number of nanoseconds in a millisecond |
| NSEC_PER_SEC |
The number of nanoseconds in a second |
| NSEC_PER_USEC |
The number of nanoseconds in a microsecond |
| USEC_INVALID |
Invalid time in usec. |
| USEC_MAX |
Biggest time in usec. |
| USEC_PER_MSEC |
The number of microseconds in a millisecond |
| USEC_PER_SEC |
The number of microseconds in a second |
Functions
| add |
Add the specified time in microseconds |
| age |
Return the time difference between now and the specified timestamp |
| cmp |
Compare one timeval struct with another, returning the ordering. E.g. if self < 'with', 'Less' returned. |
| diff |
Calculate the difference between the two specified timeval structs. |
| get |
Retrieve the specified usec value |
| get_time_of_day |
Return the current wallclock timestamp, just like UNIX gettimeofday(). |
| set |
Set the specified usec value |
| sub |
Subtract the specified time in microseconds |