Hi, has anyone used the timeofday function in Time::Hires on Win32?

The reason I ask is that I am repeatedly getting and printing the microseconds:

   @thetime = timeofday;
  print $thetime[1];

The microseconds only have a millisecond componant, so they are of the range 000000 to 
999000 (the last three digits are always zero).  I understand this might be a limit of 
the granularity of the Win32 implementation, but if someone could confirm this, it 
would be cool.

Milliseconds is fine for my uses.

My problem comes from the fact that the microsecond count does not increase 
consistantly.

If I loop around the above code, it produces the same value for say 10 iterations, and 
then will jump to a higher number and repeat that for 10 iterations, rather than 
increasing each loop, or increasing the same amount each loop.

So the output at the crossover point would be like:

718000
718000
718000
718000
734000
734000
734000

See, a sudden increase of 16000 us in the middle of the same loop.

Can anyone explain this?

Thanks,

Paul


------------------------------------------------
Global WebMail -
  Delivered by Global Internet www.global.net.uk
------------------------------------------------



Reply via email to