ITimerEvent.set

Sets next expiration time of interval timer.

  1. itimerspec set(timespec first, timespec interval)
    class ITimerEvent
    itimerspec
    set
    (
    timespec first
    ,
    timespec interval = timespec.init
    )
  2. itimerspec set(time_t first_s, uint first_ms, time_t interval_s, uint interval_ms)

Parameters

first timespec

Specifies the initial expiration of the timer. Setting either field to a non-zero value arms the timer. Setting both fields to zero disarms the timer.

interval timespec

Setting one or both fields to non-zero values specifies the period for repeated timer expirations after the initial expiration. If both fields are zero, the timer expires just once, at the time specified by it_value.

Return Value

Type: itimerspec

the previous expiration time as time().

Meta