DurationMS returns the time elapsed since the flow started, in milliseconds.
()
| 118 | |
| 119 | // DurationMS returns the time elapsed since the flow started, in milliseconds. |
| 120 | func (f *FlowTracker) DurationMS() int64 { |
| 121 | if f == nil { |
| 122 | return 0 |
| 123 | } |
| 124 | return time.Since(f.start).Milliseconds() |
| 125 | } |
| 126 | |
| 127 | // Event is a fully assembled telemetry event, ready to be tracked. |
| 128 | type Event struct { |
no outgoing calls