Unix and Linux Discussions Tagged with resolution |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
24,774 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
2,911 |
Solaris |
|
|
|
5 |
6,685 |
Solaris |
|
|
|
4 |
23,730 |
Programming |
|
|
|
1 |
3,086 |
AIX |
|
|
|
1 |
2,793 |
Solaris |
|
|
|
0 |
2,756 |
OS X Support RSS |
|
|
|
0 |
6,409 |
AIX |
|
|
|
2 |
8,255 |
Solaris |
|
|
|
1 |
9,593 |
UNIX Desktop Questions & Answers |
|
|
|
9 |
3,840 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
9,840 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,693 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,703 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,212 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,456 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,607 |
UNIX for Dummies Questions & Answers |
|
|
|
22 |
12,814 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,981 |
IP Networking |
|
|
|
3 |
44,047 |
How do I send email? |
|
|
|
3 |
5,152 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,763 |
UNIX for Dummies Questions & Answers |
clock_getres(3) Library Functions Manual clock_getres(3)
NAME
clock_getres - Gets the resolution for the specified clock (P1003.1b)
LIBRARY
Realtime Library (librt.so, librt.a)
SYNOPSIS
#include <time.h>
int clock_getres (
clockid_t clock_id,
struct timespec *res);
PARAMETERS
clock_id The clock type used to obtain the resolution. The CLOCK_REALTIME clock is supported and represents the TIME-OF-DAY clock for
the system.
*res A pointer to the timespec data structure that receives the value of the clock's resolution.
DESCRIPTION
The clock_getres function returns the resolution value for the specified clock. If the res argument is NULL, the clock resolution is not
returned.
RETURN VALUES
On a successful call, a value of 0 (zero) is returned.
On an unsuccessful call, a value of -1 is returned and errno is set to indicate that an error occurred.
ERRORS
The clock_getres function fails under the following condition:
[EINVAL] The clock_id argument does not specify a known clock.
RELATED INFORMATION
Functions: time(1), ctime(3), timer_settime(3)
Guide to Realtime Programming delim off
clock_getres(3)