AdmiralAlkex Posted September 22, 2011 Posted September 22, 2011 (edited) Even when you use the timeout parameter Ping() takes a minimum of ~500 ms on IP adresses without any device. $iTimer = TimerInit() For $iX = 1 To 10 Ping("10.0.0.111", 100) Next ConsoleWrite(Round(TimerDiff($iTimer) / 10) & " ms average" & @LF) 471 ms average Can anything be done to shorten this other than running multiple processes/threads? Note that Windows own ping.exe is not any faster. $iTimer = TimerInit() For $iX = 1 To 10 RunWait("ping 10.0.0.111 -n 1 -w 100") Next ConsoleWrite(Round(TimerDiff($iTimer) / 10) & " ms average" & @LF) 454 ms average Edited September 25, 2011 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
AdmiralAlkex Posted September 25, 2011 Author Posted September 25, 2011 Ping! .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now