SysTimer Linux

Linux specific implementation of SysTimer.

Summary
SysTimer LinuxLinux specific implementation of SysTimer.
CopyrightThis program is free software.
Files
C-kern/api/time/systimer.hHeader file SysTimer.
C-kern/platform/Linux/time/systimer.cLinux implementation file SysTimer Linux.
systimer_t
helper
convertclockidConverts sysclock_e into <clockid_t>.
timespec2timevalue_systimerConverts struct timespec into timevalue_t.
timespec_MAXSECONDSReturns the maximum value timespec->tv_sec can hold.
lifetime
test

Copyright

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.

Author

© 2011 Jörg Seebohn

Files

C-kern/api/time/systimer.h

Header file SysTimer.

C-kern/platform/Linux/time/systimer.c

Linux implementation file SysTimer Linux.

systimer_t

Summary
helper
convertclockidConverts sysclock_e into <clockid_t>.
timespec2timevalue_systimerConverts struct timespec into timevalue_t.
timespec_MAXSECONDSReturns the maximum value timespec->tv_sec can hold.
lifetime
test

helper

convertclockid

#define convertclockid(/*sysclock_e*/clock_type) ((clockid_t) (clock_type))

Converts sysclock_e into <clockid_t>.

timespec2timevalue_systimer

static inline void timespec2timevalue_systimer(/*out*/timevalue_t *tval,
const struct timespec *tspec)

Converts struct timespec into timevalue_t.

timespec_MAXSECONDS

static inline uint64_t timespec_MAXSECONDS(void)

Returns the maximum value timespec->tv_sec can hold.

lifetime

test

Offers a timer which signals timeout via input ready state of sys_iochannel_t.
Linux specific implementation of SysTimer.
#define convertclockid(/*sysclock_e*/clock_type) ((clockid_t) (clock_type))
Converts sysclock_e into clockid_t.
This value selects the clock type.
static inline void timespec2timevalue_systimer(/*out*/timevalue_t *tval,
const struct timespec *tspec)
Converts struct timespec into timevalue_t.
struct timevalue_t
The time value specifies either an aboslute time or a relative time offset.
static inline uint64_t timespec_MAXSECONDS(void)
Returns the maximum value timespec->tv_sec can hold.
Close