is $ticks based on timegettime, or on queryperformancecounter? in any way, the later is better because one call takes less cpu, and it has better than 1 microsecond accuracy on both windows 9x and NT.
timegettime has only about 15ms accuracy on NT (2000/XP)

this is about as much as the lag i have to some irc servers <grin> so i can't measure it.

if queryperformancecounter is used, $ticks will always be true 1msec accuracy, and there can be another $ticks for microseconds.