2010/5/30 Bernard Marcelly <marce...@club-internet.fr>: > Message de Johnny Rosenberg date 2010-05-29 23:05 : >> >> 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. > > There is no Basic function returning real time with better precision than 1 > s. > The apparent precision would be meaningless. > > Absolute real time valid to 100ms or better cannot be obtained on an > ordinary personal computer. The internal clock drift is about 1 second per > day (that is 10ms drift in 1/4h). You would need to recalibrate it to an > atomic clock very often.
Well, I am hopefully not an idiot (but who knows?), so of course I knew that. I didn't ask for an evaluation (if that's the correct word in this situation, I don't know, I don't usually speak English) of my project (that's why I didn't mention what I was trying to do and that's the reason that I'm not going to, but let's say that I want to measure times that usually land somewhere at 0,5 s. How can I do that with now() if its precision is 1 s? Impossible, okay? So I would need something better. At least I know now that this isn't possible with OpenOffice.org BASIC, and that's exactly what I wanted to know. Thanks. >> >> And how can 16 ms be the best precision due to IBM PC hardware design? > > The original IBM PC was Stone Age computing, compared to current PC. But it > was the first standard. >> >> And I don't know anything about MS Windows. I use Ubuntu. > > I don't know anything about Ubuntu. I use MS-Windows XP. Yes, I kind of figured that (well, not the XP part but Windows). I just mentioned that I don't use it to avoid Windows specific information that's not relevant to me anyway, nothing to be upset about. Sorry. Regards 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