You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gopsutil/host
Jeff Erbrecht a5ecb9bca5 [host] windows: use millisecond precision for BootTime()
Previously, system uptime is truncated to seconds, and then the
subtraction from `time.Now()` is performed. Because uptime does not roll
over to the next second at the same instant as `time.Now()`, then
`BootTime()` ends up not being precise, and often varies by 1 second.

This commit does the subtraction before truncating to seconds, which
results in a significantly lower chance of variance in `BootTime()`.
2 years ago
..
freebsd_headers [freebsd][host]: fix Users() return start secs. 6 years ago
host.go [host] windows: use millisecond precision for BootTime() 2 years ago
host_bsd.go gofumpt 3 years ago
host_darwin.go refactor: remove unnecessary exec.LookPath calls 3 years ago
host_darwin_amd64.go gofumpt 3 years ago
host_darwin_arm64.go gofumpt 3 years ago
host_darwin_cgo.go gofumpt 3 years ago
host_darwin_nocgo.go gofumpt 3 years ago
host_fallback.go gofumpt 3 years ago
host_freebsd.go gofumpt 3 years ago
host_freebsd_386.go [freebsd]host: change freebsd struct for 386 and arm. 6 years ago
host_freebsd_amd64.go [freebsd][host]: fix Users() return start secs. 6 years ago
host_freebsd_arm.go [freebsd]host: change freebsd struct for 386 and arm. 6 years ago
host_freebsd_arm64.go gofumpt 3 years ago
host_linux.go host: use unix.ByteSliceToString 2 years ago
host_linux_386.go gofumpt 3 years ago
host_linux_amd64.go gofumpt 3 years ago
host_linux_arm.go gofumpt 3 years ago
host_linux_arm64.go gofumpt 3 years ago
host_linux_mips.go gofumpt 3 years ago
host_linux_mips64.go gofumpt 3 years ago
host_linux_mips64le.go gofumpt 3 years ago
host_linux_mipsle.go gofumpt 3 years ago
host_linux_ppc64le.go gofumpt 3 years ago
host_linux_riscv64.go gofumpt 3 years ago
host_linux_s390x.go gofumpt 3 years ago
host_linux_test.go gofumpt 3 years ago
host_openbsd.go gofumpt 3 years ago
host_openbsd_386.go gofumpt 3 years ago
host_openbsd_amd64.go gofumpt 3 years ago
host_openbsd_arm.go host: add support for OpenBSD/armv7 3 years ago
host_openbsd_arm64.go gofumpt 3 years ago
host_posix.go host: use unix.ByteSliceToString 2 years ago
host_solaris.go refactor: remove unnecessary exec.LookPath calls 3 years ago
host_test.go enable errorlint linter 3 years ago
host_windows.go [host] windows: use millisecond precision for BootTime() 2 years ago
smc_darwin.c Use 0 as default mach port 3 years ago
smc_darwin.h Replace IOMainPort/IOMasterPort() and kIOMainPortDefault/kIOMasterPortDefault with NULL 3 years ago
types_darwin.go gofumpt 3 years ago
types_freebsd.go gofumpt 3 years ago
types_linux.go gofumpt 3 years ago
types_openbsd.go gofumpt 3 years ago