jandre / procfs

Go package for accessing the /proc virtual filesystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why using time.Time instead of time.Duration on the Cputime variables?

kurojishi opened this issue · comments

So, i'm now using the stats functionality go get the Cputime of a process by adding the stats.Utime and stats.Stime, i noticed that they are both time.Time objects, why this?
don't the two numbers represent a duration? shouldn't they be time.Duration?

thanks again

I think you are correct