//go:build windows package sqex import "syscall" var kernel32 = syscall.NewLazyDLL("kernel32.dll") var getTickCount = kernel32.NewProc("GetTickCount") // RawTickCount returns milliseconds since boot via the same API the game uses. // LazyDLL works in pure-Go builds (CGO_ENABLED=0); syscall.GetTickCount does not. func RawTickCount() uint32 { n, _, _ := getTickCount.Call() return uint32(n) }