Unix and Linux Discussions Tagged with timer |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
1,723 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
3,599 |
UNIX for Beginners Questions & Answers |
|
|
|
7 |
12,284 |
Ubuntu |
|
|
|
2 |
8,098 |
Shell Programming and Scripting |
|
|
|
2 |
7,517 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
83,044 |
Shell Programming and Scripting |
|
|
|
7 |
6,248 |
Homework & Coursework Questions |
|
|
|
1 |
5,227 |
Programming |
|
|
|
2 |
7,878 |
Programming |
|
|
|
2 |
2,892 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,291 |
Shell Programming and Scripting |
|
|
|
1 |
8,044 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
4,557 |
Linux |
|
|
|
0 |
2,795 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
6,874 |
Solaris |
|
|
|
0 |
3,726 |
Programming |
|
|
|
1 |
5,265 |
Programming |
|
|
|
2 |
3,388 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
6 |
4,325 |
UNIX for Dummies Questions & Answers |
reltimer(3C) reltimer(3C)
NAME
reltimer - relatively arm a per-process timer
SYNOPSIS
DESCRIPTION
The function sets the of the specified timer to an offset from the current clock setting.
If specifies a value argument with the member equal to zero, the timer is disabled. updates the it_interval value of the timer to the
value specified. Time values smaller than the resolution of the specified timer are rounded up to its resolution; timer values larger than
the maximum value of the specified timer are rounded down to the maximum value (see mktimer(3C)).
returns in the ovalue parameter a value representing the previous amount of time before the timer would have expired or zero if the timer
was disabled, together with the previous interval timer period. The members of ovalue are subject to the resolution of the timer, and are
the same values that would be returned by a call.
The behavior of this function is undefined if value is NULL.
RETURN VALUE
Upon successful completion, returns zero; otherwise, it returns -1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EINVAL] does not correspond to an ID returned by or the value structure specified a nanosecond value less than zero or greater
than or equal to 1000 million.
[EIO] An error occurred while accessing the clock device.
FILES
SEE ALSO
timers(2), gettimer(3C), mktimer(3C), thread_safety(5).
STANDARDS CONFORMANCE
reltimer(3C)