Re: [go-nuts] Windows - syscall.GetProcessTimes() always shows 0 values.

2017-05-31 Thread kevin . michael . lloyd
Steven, your example is really helpful! I didn't know Windows had a lower time interval for internal timers, so that's good to know, thanks for getting me unstuck! Thought I was losing my mind. Is there a reason to pass the PID around instead of using the pseudo handle? I'm new to the core Wind

[go-nuts] Windows - syscall.GetProcessTimes() always shows 0 values.

2017-05-31 Thread kevin . michael . lloyd
I am trying to query the process statistics against the runtime in Windows so I can monitor it's utilisation. First, I get the process handle for the runtime: // GetCurrentProcess will return our process handle with the appropriate information. func GetCurrentProcess() (syscall.Handle, error) {