Skip to content

boot_time returns current time on windows #345

@Orycterope

Description

@Orycterope

The windows implementation of boot_time is wrong: it gets the current time, converts windows epoch to unix epoch, but never actually subtracts the boot time of the machine.

Here's a valid implementation in psutil for example: it gets the current time, subtracts the number of milliseconds since boot, and converts this instant to unix epoch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions