Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

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?