2010/5/29 Bernard Marcelly <marce...@club-internet.fr>:
> Hello Johnny,
> Message de Johnny Rosenberg  date 2010-05-29 17:53 :
>>
>> Have been searching in Help but I didn't find anything so far. I want
>> the current time in ms, but all I find is the now() function which
>> seems to have 1 s for resolution. Hints?
>>
> If you want to measure short delays, see function GetSystemTicks.
> It is described in help under "Miscellaneous commands", not under "Date and
> Time functions".
> On MS-Windows the result is in milliseconds, with a precision of 16 ms due
> to IBM PC hardware design.

I know about the GetSystemTicks() function, but isn't that System
Ticks rather than time? Like CPU time or something like that.
I want to know the time from when I start doing something until it's
done in absolute time. now() would work if the resolution was better
than 1 s.

And how can 16 ms be the best precision due to IBM PC hardware design?
I can get milliseconds from the operating system, can't I? And games
like Torcs seems to use a precision of 1 ms (each 10 ms is viewed
within the game but if you look at the xml files, time is represented
like ”sssss.sss”, which is a precision of 1 ms (or at least could be).

And I don't know anything about MS Windows. I use Ubuntu.

Johnny Rosenberg

>
> Regards
>  Bernard
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
> For additional commands, e-mail: dev-h...@api.openoffice.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org

Reply via email to