Marc, you might do better to get the current time (in ticks) at the start of the routine, and again at the end, then take the difference of the two.
Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
|