• Welcome to Valhalla Legends Archive.
 

[VB] Idle Question

Started by FiReGoD, February 27, 2003, 04:48 PM

Previous topic - Next topic

FiReGoD

#15
inaccurate?

Camel

#16
it'll work fine, but vb timers aren't known for triggering on time

Yoni

#17
It should be accurate.

The VB Timer control is a wrapper around the Win32 SetTimer function and WM_TIMER message (aka the "User32 timer").
Although the User32 timer is a low-resolution timer, for such high intervals (an entire second) it will be accurate. (You may still lose a millisecond or three because of the VB VM's overhead.)

It will only be inaccurate if you specify a low interval that requires a high-resolution timer. I wouldn't trust it to be accurate with an interval lower than about 50.