Linux specific implementation of SysTimer.
SysTimer Linux | Linux specific implementation of SysTimer. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file SysTimer. |
C-kern/ | Linux implementation file SysTimer Linux. |
systimer_t | |
helper | |
convertclockid | Converts sysclock_e into <clockid_t>. |
timespec2timevalue_systimer | Converts struct timespec into timevalue_t. |
timespec_MAXSECONDS | Returns the maximum value timespec->tv_sec can hold. |
lifetime | |
test |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2011 Jörg Seebohn
Header file SysTimer.
Linux implementation file SysTimer Linux.
helper | |
convertclockid | Converts sysclock_e into <clockid_t>. |
timespec2timevalue_systimer | Converts struct timespec into timevalue_t. |
timespec_MAXSECONDS | Returns the maximum value timespec->tv_sec can hold. |
lifetime | |
test |
#define convertclockid( /*sysclock_e*/clock_type ) ((clockid_t) (clock_type))
Converts sysclock_e into <clockid_t>.
static inline void timespec2timevalue_systimer( /*out*/timevalue_t * tval, const struct timespec * tspec )
Converts struct timespec into timevalue_t.
Converts sysclock_e into clockid_t.
#define convertclockid( /*sysclock_e*/clock_type ) ((clockid_t) (clock_type))
Converts struct timespec into timevalue_t.
static inline void timespec2timevalue_systimer( /*out*/timevalue_t * tval, const struct timespec * tspec )
The time value specifies either an aboslute time or a relative time offset.
struct timevalue_t
Returns the maximum value timespec->tv_sec can hold.
static inline uint64_t timespec_MAXSECONDS( void )