Next: , Previous: , Up: posix time   [Index]


4.18.6 Data structure struct-itimerspec

Structure representing interval timer specifications (ITimerSpec).

Structure Type: struct-itimerspec

Scheme level representation of struct itimerspec, see the manual pages timer_create(2) and timerfd_create(2). It has the following fields:

it_interval

An instance of struct-timespec representing the period between successive timer interrupts, in seconds and nanoseconds. posix time timespec for details on struct-timespec.

it_value

An instance of struct-timespec representing the time interval between now and the first timer interrupt, in seconds and nanoseconds. posix time timespec for details on struct-timespec.

Function: make-struct-itimerspec
Function: make-struct-itimerspec interval value

Build and return a new instance of struct-itimerspec. When called with no arguments: two new instances of struct-timespec are allocated and initialised to zero values, then used as field values.

Function: struct-itimerspec? obj

Return true if obj is an instance of struct-itimerspec.

Function: struct-itimerspec-it_interval itimerspec
Function: struct-itimerspec-it_value itimerspec

Accessors for the fields of struct-itimerspec.