| 47 | } |
| 48 | |
| 49 | double Timer::getSeconds() |
| 50 | { |
| 51 | /** catch current time */ |
| 52 | TimestampType End = std::chrono::high_resolution_clock::now(); |
| 53 | |
| 54 | /** convert to a duration */ |
| 55 | double TimeDifference = std::chrono::duration_cast<std::chrono::nanoseconds>(End - _Start).count() / 1e9; |
| 56 | |
| 57 | /** convert to double */ |
| 58 | return TimeDifference; |
| 59 | } |
| 60 | |
| 61 | } |
no test coverage detected