mirror of
https://github.com/holub/mame
synced 2025-10-06 09:00:04 +03:00
these are constexpr so calculation does not cost (nw)
This commit is contained in:
parent
b68fef4f05
commit
ccc12869fd
@ -160,7 +160,7 @@ osd_ticks_t osd_ticks(void)
|
|||||||
|
|
||||||
osd_ticks_t osd_ticks_per_second(void)
|
osd_ticks_t osd_ticks_per_second(void)
|
||||||
{
|
{
|
||||||
return std::chrono::high_resolution_clock::period::den;
|
return std::chrono::high_resolution_clock::period::den / std::chrono::high_resolution_clock::period::num;
|
||||||
}
|
}
|
||||||
|
|
||||||
//============================================================
|
//============================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user