(t time.Time)
| 19 | } |
| 20 | |
| 21 | func timestamp(t time.Time) int64 { |
| 22 | if t.IsZero() { |
| 23 | return 0 |
| 24 | } |
| 25 | return t.UnixNano() / int64(time.Millisecond) |
| 26 | } |
| 27 | |
| 28 | func makeDuration(ms int32) time.Duration { |
| 29 | return time.Duration(ms) * time.Millisecond |
no test coverage detected