﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
404	the time of the Sleep() command is vague	De`ak (bigdeak@…		"Hello Developers,

i did some tests on vista and windows XP, the sleep times of the sleep command is really vagua. I'm working on a software, where i need a sleep of 1 ms, but if i use Sleep( 1 ), the real stop time is 10 ms on Vista and 15 ms on xp.
Here is a source code of testing the Sleep() function:

{{{
while 1
	
	$begin = TimerInit()
	Sleep( 1 )
	$dif = TimerDiff($begin)
	ConsoleWrite($dif & @CRLF)
	
Wend
}}}

The strange thing is: If you give a time of 11 ms on Vista, the sleep time is 21 ms (on xp the time is given: 16 ms -> 31 ms), or 22 for 32 ms on Vista etc.

it would be nice if the Sleep() function is preciser...

sorry for my bad english XD"	Bug	closed		AutoIt	3.2.12.1	None	No Bug	Sleep	
