MCPcopy Create free account
hub / github.com/coder/coder / windowsUptime

Function windowsUptime

vpn/tun_windows.go:137–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135)
136
137func windowsUptime() time.Duration {
138 r, _, _ := getTickCount64Proc.Call()
139 return time.Duration(int64(r)) * time.Millisecond
140}
141
142// TODO(@dean): implement a way to install/uninstall the wintun driver, most
143// likely as a CLI command

Callers 1

Calls 2

CallMethod · 0.80
DurationMethod · 0.80

Tested by

no test coverage detected