Skip to contentSkip to conversation

What timer should I use

DISCUSSION Alain M. 1 participant 1 message Nov 8, 2007

lore
Share & tools
lore

Alain M.

author
#0 lore raw

Hi,

What should be the best policy to real time in units of 1ms under dosemu?

1) use of the HW timer is not good because it needs HW access.

2) using the Pentium RDTSC works, but I read a lot that it can ger strange on newer machines

3) is there a way to qwery the Linux timer using gettimeofday() ??

In hope that I get some answers,
thanks,
Alain