Operating System - Microsoft
1753808 Members
7602 Online
108805 Solutions
New Discussion

C & Fortran timer calls on Kayak X550 NT4

 
Tim Prince_1
Occasional Advisor

C & Fortran timer calls on Kayak X550 NT4

The standard clock() and cpu_time() calls work only with a resolution of 1.00
second on my X550 under NT4 SP5 (and linux). The QueryPerformance calls work
well; however the normal run time libraries implement the standard calls in
terms of QueryPerformance only under W9x, if at all, since normal NT systems
provide other options. When running g77, of course, I can hack the library to
act as if it were W95, but commercial compilers don't provide sufficient
documentation to implement such a work-around. Does anyone have a solution,
for NT or linux or both?