core/core_timing_util: Use std::chrono types for specifying time units

Makes the interface more type-safe and consistent in terms of return
values.
This commit is contained in:
Lioncash 2019-06-04 19:52:42 -04:00
parent 79189c7e3e
commit 42f5fd0ab3
7 changed files with 43 additions and 36 deletions

View file

@ -75,7 +75,7 @@ void ThreadManager::StartThread(VideoCore::RendererBase& renderer, Tegra::DmaPus
void ThreadManager::SubmitList(Tegra::CommandList&& entries) {
const u64 fence{PushCommand(SubmitListCommand(std::move(entries)))};
const s64 synchronization_ticks{Core::Timing::usToCycles(9000)};
const s64 synchronization_ticks{Core::Timing::usToCycles(std::chrono::microseconds{9000})};
system.CoreTiming().ScheduleEvent(synchronization_ticks, synchronization_event, fence);
}