🛈 Note: This is pre-release documentation for the upcoming tracing 0.2.0 ecosystem.

For the release documentation, please see docs.rs, instead.

tracing_subscriber::fmt::time

Function uptime

Source
pub fn uptime() -> Uptime
Available on crate features fmt and std only.
Expand description

Returns a new Uptime timestamp provider.

With this timer, timestamps will be formatted with the amount of time elapsed since the timestamp provider was constructed.

This can then be configured further to determine how timestamps should be configured.

This is equivalent to calling

tracing_subscriber::fmt::time::Uptime::default()