Implementing a timer

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
purevoid

Implementing a timer

Post by purevoid »

Hi,

I want to create a general purpose timer interface, with 1ms precision, that user apps can use.

For example, this would be used in our networking stack for detecting timeouts.

However, I'm not sure what the best route to take is. Could someone give me some tips on the best direction for this?

Jonathan
GLneo

Re:Implementing a timer

Post by GLneo »

try the PIT: http://osdever.net/bkerndev/index.php?the_id=90
goto the section about the PIT, running at a 1000 times a second i thought was a little much(1000clocks per intrurupt x 1000 times a second = 1Mhz less speed)i did 1 hundered a second and made it think it was in ms ;)
Post Reply