trace exact timestamps (#39)

RFC3339 only exports up to second granularity, which is not enough for a
detailed analysis.
This commit is contained in:
Marten Seemann 2022-06-04 15:43:23 +02:00 committed by GitHub
parent 5874c5f23a
commit 4316554cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ func (t *trace) push(evt traceEvt) {
if t.done {
return
}
evt.Time = time.Now().Format(time.RFC3339)
evt.Time = time.Now().Format(time.RFC3339Nano)
t.pend = append(t.pend, evt)
}