| 158 | } |
| 159 | |
| 160 | std::string Log::now() const |
| 161 | { |
| 162 | std::chrono::steady_clock::time_point end = m_clock.now(); |
| 163 | |
| 164 | std::chrono::duration<double> diff = end - m_start; |
| 165 | std::stringstream ss; |
| 166 | |
| 167 | ss << std::fixed << std::setprecision(3) << diff.count(); |
| 168 | return ss.str(); |
| 169 | } |
| 170 | |
| 171 | } // namespace |