Caculate time in nanoseconds

Use time.Duration instead of int64 value in seconds.
2 files changed