On Sat, Jul 4, 2020 at 5:24 PM Denis Cheremisov <[email protected]>
wrote:
> I have a small app like
>
> func main() {
> start := time.Now()
> …
> fmt.Println(time.Since(start))
> }
>
> where output is ≈400μs but the actual time is about 0.16s, I mean....
>
I can't reproduce and since it is really rare to see anyone report
something like this it is most likely a quirk of your system. Also, when
reporting issues of this nature you should include the go version and
information about the platform such as the OS. I would start by using
`strace -ttt -o strace.out app-name` to see if there are any syscalls that
are taking longer than expected. If that doesn't reveal an obvious culprit
then the time is probably external to your program.
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/CABx2%3DD8yY%3Dpu5Y02Qmg57cSDsHQcj3L5YN%2BsD-De9LfnJ6jmQA%40mail.gmail.com.