End a console timer by logging the span at INFO level.
(&self, span: &TimingSpan, function: Option<&str>)
| 324 | |
| 325 | /// End a console timer by logging the span at INFO level. |
| 326 | pub(crate) fn console_timer_end(&self, span: &TimingSpan, function: Option<&str>) { |
| 327 | let elapsed = span.start.elapsed(); |
| 328 | let message = format!("Timing span {:?}: {:?}", &span.name, elapsed); |
| 329 | |
| 330 | self.console_log_simple_message(LogLevel::Info, function, &message); |
| 331 | } |
| 332 | |
| 333 | /// Returns the current time suitable for logging. |
| 334 | pub fn now_for_logging() -> DateTime<Utc> { |
nothing calls this directly
no test coverage detected