Avery Lee suggests to use timeGetTime() but it doesn't offer the same precision, this is not an easy problem to solve, even linux kernel has a lot of ways to handle timing Bye -- Gianluigi Tiesi <sherpya at netfarm.it> EDP Project Leader Netfarm S.r.l. - http://www.netfarm.it/ Free Software: http://oss.netfarm.it/