Message de Konstantin Tokarev date 2010-05-29 19:10 :
On MS-Windows the result is in milliseconds, with a precision of 16 ms due to
IBM PC hardware design.
Does it mean that results of OOo Basic scripts may be platform-dependent?
Help says it depends on OS. I have not tested on other OS than MS-Windows, nor
on other HW platform, e.g. Mac.
Help shows how to count the ticks for a given delay.
This code shows on PC/MS-Windows that GetSystemTicks does not increment by 1.
Dim t1 As Long, t2 As Long, n As Long
n = 0
t1 = GetSystemTicks
Do
t2 = GetSystemTicks -t1
n = n+1
Loop Until t2 <> 0
MsgBox("t2 = " & t2 & " n = " & n)
Regards
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org