Page 1 of 1 1
Topic Options
#73170 - 2003-02-18 02:52 AM can sleep do milliseconds?
rollo Offline
Getting the hang of it

Registered: 2000-07-11
Posts: 85
Loc: louisiana
Can the sleep function do milliseconds?
I need it to do less then one second
thanks
Adam

Top
#73171 - 2003-02-18 02:53 AM Re: can sleep do milliseconds?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Yes, since KiXtart 4.12
code:
SLEEP 0.001

_________________________
There are two types of vessels, submarines and targets.

Top
#73172 - 2003-02-18 02:54 AM Re: can sleep do milliseconds?
rollo Offline
Getting the hang of it

Registered: 2000-07-11
Posts: 85
Loc: louisiana
great!
the docs dont really specify
thanks again

Top
#73173 - 2003-02-18 04:48 AM Re: can sleep do milliseconds?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well, it's in my kix2001.txt file...
quote:
Fixes/enhancements in 4.10:
- Added support for floating point math, including math functions:
Abs, Int, Fix, Round, Cstr, CInt, CDbl, FormatNumber

- Added mod operator

- Added @LOGONMODE, @CPU, @MHZ, @SCRIPTNAME

- Enhanced Sleep command to accept milliseconds

...

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#73174 - 2003-02-18 05:22 AM Re: can sleep do milliseconds?
rollo Offline
Getting the hang of it

Registered: 2000-07-11
Posts: 85
Loc: louisiana
LLigetfa,
I tried the link that you have on your signature for the online manual...
it does not mention milliseconds for sleep just seconds. The windows help file does not either
but the DOC does and the txt file
thanks again.
Adam

Top
#73175 - 2003-02-18 05:31 AM Re: can sleep do milliseconds?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Hmm... I just checked the link in my sig and it does mention fractions of a second.
quote:
SLEEP

Action
Halts script execution for the number of seconds specified. Note that you can specify fractions of a second.

Syntax
SLEEP

Examples
SLEEP 10 ; pause script for 10 seconds

SLEEP 0.5 ; pause script for half a second


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.055 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org