[Lazarus] Obtaining uptime

Sven Barth pascaldragon at googlemail.com
Wed Aug 6 08:05:22 CEST 2014


Am 06.08.2014 07:50 schrieb "Richard Mace" <richard.mace at gmail.com>:
>
> Hi,
> Does anyone know why the following code returns the correct days uptime
in XP, but doesn't in Windows 8? (not tested in anything other)

Just in case: you know that Windows 8 does not really shutdown by default,
but merely suspends to provide a faster "user experience"? So the result
returned by GetTickCount will not be what you might expect.
Also on Unix systems it won't work as GetTickCount is linked up with a
date/time based function there.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140806/2494606c/attachment-0003.html>


More information about the Lazarus mailing list