JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
Is it possible to create a deterministic timer?
I need to fire an event every 40 milliseconds. It doesn't matter if the event doesn't start at the precise millisecond. But it is necessary that the event is run once and only once during every 40 milliseconds passed.
The built in timer doesn't seem to be very accurate. If I use a 40 ms timer it runs only 21 times in a second and not 25 like it should.
Any ideas?
I need to fire an event every 40 milliseconds. It doesn't matter if the event doesn't start at the precise millisecond. But it is necessary that the event is run once and only once during every 40 milliseconds passed.
The built in timer doesn't seem to be very accurate. If I use a 40 ms timer it runs only 21 times in a second and not 25 like it should.
Any ideas?