Date & time functions

Date & time functions. More...

Functions

 date ()
 Returns system date.

 time ()
 Returns system time.

 getticks ()
 Returns the value of the Windows high-performance counter.

 setidle (ms)
 Insert a sleep time between script lines.


Detailed Description

Date & time functions.


Function Documentation

date  ) 
 

Returns system date.

Returns system date.

getticks  ) 
 

Returns the value of the Windows high-performance counter.

Returns the value of the Windows high-performance counter, in milliseconds. Use this for timinig purposes.

Example:
start= getticks()
......
now=getticks()
if ((now-start)>>300)
#300 ms elapsed, do something
endif

setidle ms   ) 
 

Insert a sleep time between script lines.

Inserts a sleep time of ms milliseconds between the script lines. Useful for lowering the processor usage, but degrades the application speed and interface behavior. Don't use big values, something between 1 and 20 it's enough.

Parameters:
ms Sleep time in milliseconds

time  ) 
 

Returns system time.

Returns system time.


Generated on Wed Dec 3 10:18:42 2003 for Easy Control