[Lazarus] Obtaining uptime

Richard Mace richard.mace at gmail.com
Wed Aug 6 11:07:58 CEST 2014


Ah, that's interesting.
Even if you actually choose Shutdown from the menu?
Richard
On 6 Aug 2014 07:06, "Sven Barth" <pascaldragon at googlemail.com> wrote:

> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140806/5cf872cf/attachment-0003.html>


More information about the Lazarus mailing list