| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Fri Feb 22, 2008 7:08 am Post subject: Wait 0,1 |
|
|
wait 0,1
wait 0.1
What is the difference in this two...  |
|
| Back to top |
|
 |
JerryDee Contributor


Joined: 19 Oct 2005 Posts: 53 Location: Czech Republic
|
Posted: Fri Feb 22, 2008 8:36 am Post subject: |
|
|
Hi filip,
The difference is in local setings (control panels).
Single countries use different expression for decimal point (they use a "coma sign" in place of a "point sign"), in such case you should use this setting:
OPTION DECIMALSEP,. _________________ Jerry
(VDS 4,5,6 Pro | V-Setup 3) |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Fri Feb 22, 2008 9:47 am Post subject: |
|
|
The funny thing is that...
0,1 is like 0.9 if you test the speed... |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Feb 22, 2008 1:56 pm Post subject: |
|
|
| filip wrote: | The funny thing is that...
0,1 is like 0.9 if you test the speed... |
That's because your version of Windows would use a decimal point instead of a comma so 0,1 for you would be 1 second (it'd ignore the 0 and the comma).
You should put OPTION DECIMALSEP,"." at the top of all of your scripts and then always use a decimal. That way your scripts will still work correctly for someone else even if they're in a country that uses a comma. _________________ cheers
Dave
Last edited by DaveR on Fri Feb 22, 2008 5:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Feb 22, 2008 3:42 pm Post subject: |
|
|
| filip wrote: | The funny thing is that...
0,1 is like 0.9 if you test the speed... |
Filip,
What is your method for testing the speed of the Wait command? You will never get a precise measurement from the Wait command and besides 1 millisecond is very hard to achieve in Windows unless you use a high precision timer that can do micro-seconds. You can adjust the wait command if you need too. Take a look at the OPTION SLEEPTIME command. VDS defaults to 50ms unless you adjust the sleeptime option. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Sun Feb 24, 2008 7:03 am Post subject: |
|
|
You can try with Progress
or
play dumy.wav (you will hear PC Speaker) don't use any file for this |
|
| Back to top |
|
 |
|