Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 583   Yesterday: 884   Max: 1,872   Total: 420,143   Current Users : 11 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 
Search Linux manpages For:  

clock_getres(2) -- Linux man page

 

NAME

clock_getres - Get the resolution of any clock  

SYNOPSIS

long sys_clock_getres (clockid_t which_clock, struct timespec *tp);
 

DESCRIPTION

clock_gettime gets the resolution of any clock specified by the which_clock parameter, and places this information in the struct timespec pointed to by tp. The values that clockid_t currently supports for POSIX.1b timers, as defined in include/linux/time.h, are:

CLOCK_REALTIME
Systemwide realtime clock.
CLOCK_MONOTONIC
Represents monotonic time. Cannot be set.
CLOCK_PROCESS_CPUTIME_ID
High resolution per-process timer.
CLOCK_THREAD_CPUTIME_ID
Thread-specific timer.
CLOCK_REALTIME_HR
High resolution version of CLOCK_REALTIME.
CLOCK_MONOTONIC_HR
High resolution version of CLOCK_MONOTONIC.
 
 

RETURN VALUE

clock_gettime returns 0 on success; otherwise, it returns one of the errors listed in the "Errors" section.  

ERRORS

-EINVAL
An invalid which_clock value was specified.
-EFAULT
An invalid tp value was specified.
 

SEE ALSO

clock_gettext(2), clock_nanosleep(2), clock_settime(2)  

AUTHOR

Niki Rahimi


 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.