HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Default clock resolution
Operating System - HP-UX
1831338
Members
3122
Online
110024
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2001 10:38 AM
01-25-2001 10:38 AM
Default clock resolution
Clock () indicates that the "potential" resolution is in microseconds but the default resolution is 10 milliseconds. Assuming that my machine is operating at a speed much higher than 1Mhz how do I set the default resolution to something better than 10 ms? My Visual C on my laptop at least gives me 1ms resolution.
Thanks,
Rick
Thanks,
Rick
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 01:50 AM
01-26-2001 01:50 AM
Re: Default clock resolution
clock(3c) is just a wrapper for times(2). Have a look at times(2) as that looks like it's in ticks (which is cpu dependent).
Or you look at pstat() which can get the same, but probably has too much overhead.
Andy
Or you look at pstat() which can get the same, but probably has too much overhead.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2001 12:21 PM
01-26-2001 12:21 PM
Re: Default clock resolution
Thanks much for you reply... I had previously looked at this as an alternative only to discover that while it references a different definitions - CLK_TCK, it too is providing a 10ms resolution. What got me started on my question was the comment in clock() that indicates CLOCKS_PER_SECOND is defaulted at 10ms. This implies to me that perhaps the tick resolution could be set to a different value (within limits of course) by some system configuration parameter.
Ciao,
Rick
Ciao,
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2001 12:25 AM
01-27-2001 12:25 AM
Re: Default clock resolution
Looking at the time.h header file, you can see :-
#ifndef
#define CLOCKS_PER_SEC 1000000
Therefore, it looks like you might be able to override the value with your own.
Worth a try.
#ifndef
#define CLOCKS_PER_SEC 1000000
Therefore, it looks like you might be able to override the value with your own.
Worth a try.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP