| 60 | |
| 61 | |
| 62 | void TestTimer::end() |
| 63 | { |
| 64 | time_point<Clock> user1 = Clock::now(); |
| 65 | clock_t sys1 = clock(); |
| 66 | |
| 67 | duration<double, std::milli> d = user1 - user0_; |
| 68 | int tuser = static_cast<int>(d.count()); |
| 69 | |
| 70 | user_cum_ += tuser; |
| 71 | sys_cum_ += static_cast<int>((1000 * (sys1 - sys0_)) / |
| 72 | static_cast<double>(CLOCKS_PER_SEC)); |
| 73 | } |
| 74 | |
| 75 | |
| 76 | void TestTimer::print_running( |
no outgoing calls
no test coverage detected