| 318 | } |
| 319 | |
| 320 | void timing_log_scalar(const std::string & name, std::string_view value) { |
| 321 | if (!timing_log_enabled()) { |
| 322 | return; |
| 323 | } |
| 324 | std::ostringstream output; |
| 325 | output << "[TIMING ts=" << timestamp_seconds_local() << "] " << name << " " << value; |
| 326 | log_message(output.str()); |
| 327 | } |
| 328 | |
| 329 | void timing_log_scalar(const std::string & name, double value) { |
| 330 | if (!timing_log_enabled()) { |
no test coverage detected