create ?flags clock
creates a new timer file descriptor. With Linux 2.6.26 or
earlier flags
must be empty.
set_at t at
and set_after t span
set t
to fire once, at at
or after
span
. set_after
treats span <= 0
as span = 1ns
; unlike the underlying
system call, timerfd_settime
, it does not clear the timer if span = 0
. To
clear a timerfd, use Timerfd.clear
.
set_repeating ?after t interval
sets t
to fire every interval
starting after
after
(default is interval
), raising if interval <= 0
.
clear t
causes t
to not fire any more.
: Core_kernel.Std.Time_ns.Span.t | ; | ||||
: Core_kernel.Std.Time_ns.Span.t | ; |