View source: R/telemetry_otel_conversion.R
| calculate_span_duration_ms | R Documentation |
Computes the duration between span start and end times in milliseconds.
calculate_span_duration_ms(start_time, end_time)
start_time |
POSIXct start timestamp |
end_time |
POSIXct end timestamp |
Numeric duration in milliseconds, or NA if either time is missing
## Not run:
start <- as.POSIXct("2024-01-01 12:00:00", tz = "UTC")
end <- as.POSIXct("2024-01-01 12:00:01.5", tz = "UTC")
calculate_span_duration_ms(start, end) # returns 1500
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.