Add:
[pascal]timeBeginPeriod(1); // this could be at start of program
.....
{ here should be your high precision code with timeGetTime calls }
.....
timeEndPeriod(1); // this could be at the end of program[/pascal]