On Tue, Aug 08, Robert Pluim wrote:

> >>>>> On Tue, 8 Aug 2023 14:29:27 +0000, Thorsten Kukuk <ku...@suse.com> said:
>     Thorsten> Which means tools like who just don't show anything. And emacs 
> will
>     Thorsten> never find out the boot time with the current code.
> 
> What API do you suggest we use instead?

For me clock_gettime works very well:
https://github.com/thkukuk/utmpx/blob/main/utmp-to-logind.md#determine-boot-time

  Thorsten


-- 
Thorsten Kukuk, Distinguished Engineer, Senior Architect, Future Technologies
SUSE Software Solutions Germany GmbH, Frankenstraße 146, 90461 Nuernberg, 
Germany
Managing Director: Ivo Totev, Andrew McDonald, Werner Knoblich
(HRB 36809, AG Nürnberg)



Reply via email to