| 33 | namespace util { |
| 34 | |
| 35 | int64_t current_time_ms() { |
| 36 | std::chrono::milliseconds ms_since_epoch = |
| 37 | std::chrono::duration_cast<std::chrono::milliseconds>( |
| 38 | std::chrono::steady_clock::now().time_since_epoch()); |
| 39 | return ms_since_epoch.count(); |
| 40 | } |
| 41 | |
| 42 | // This is not really test. |
| 43 | // This file just print some information using the logging macro. |