I expected the output of use.Utime.Nano() and use.Stime.Nano() to be in units of "nanoseconds elapsed since the Unix epoch" as the documentation states.
What did you see instead?
Instead, I think the results are just the nanoseconds of CPU time used, not nanoseconds since the Unix epoch. That seems to be how the underlying system calls work anyway, so I think the documentation just needs to be updated.
The text was updated successfully, but these errors were encountered:
Follow what CL 277073 did for package syscall:
The various conversion functions just change the format of time values.
They don't use the Unix epoch. Although in practice the values are often
times since the Unix epoch, they aren't always, so referring to the
epoch can be confusing.
Trust: Tobias Klauser <email@example.com>
Run-TryBot: Tobias Klauser <firstname.lastname@example.org>
TryBot-Result: Go Bot <email@example.com>
Reviewed-by: Ian Lance Taylor <firstname.lastname@example.org>