diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-02-16 19:30:42 +1100 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-02-16 19:30:42 +1100 |
| commit | a64bf66a50bf628714bdf148e3136d1c549bea70 (patch) | |
| tree | c794f45c32cf3613a54472de805367d3acdbfb8d /src/device_context.cc | |
| parent | 5cf3e65a3904a5be0f080cd675da63f190ca58d2 (diff) | |
subtract CPU time, WIP
Diffstat (limited to 'src/device_context.cc')
| -rw-r--r-- | src/device_context.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/device_context.cc b/src/device_context.cc index b8d3482..67af3aa 100644 --- a/src/device_context.cc +++ b/src/device_context.cc @@ -53,14 +53,6 @@ void DeviceContext::Clock::calibrate() { }; auto calibrated_result = CalibratedResult{}; - // we probably want to use this instead bc clock_gettime isn't guaranteed - // by steady clock afaik - /* - struct timespec tv; - clock_gettime(CLOCK_MONOTONIC, &tv); - return tv.tv_nsec + tv.tv_sec*1000000000ull; - */ - const auto steady_before = std::chrono::steady_clock::now(); device.vtable.GetCalibratedTimestampsKHR(device.device, 2, std::data(infos), &calibrated_result.device, |
