1847464 Members
2700 Online
110265 Solutions
New Discussion

Clock ticks...

 
Carlo Henrico_1
Regular Advisor

Clock ticks...

Our developers have some library in Windows which they include in their C code which measures clock ticks. Is there something similar in HP-UX?
Live fast, die young - enjoy a good looking corpse!
2 REPLIES 2
RikTytgat
Honored Contributor

Re: Clock ticks...

Dan Hetzel
Honored Contributor

Re: Clock ticks...

Hi Carlo,

Not with a CPU tick accuracy but with a microsecond resolution, you have the
clock system call.
The problem is that it is storing its data in a long integer and therefore wraps every 4295 seconds (approx 72 minutes)

See man 3C clock

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com