summaryrefslogtreecommitdiff
path: root/src/common/wall_clock.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rework time service to fix time passing offline.Gravatar Kelebek12024-01-241-6/+3
|
* core_timing: Fix SingleCore cycle timerGravatar Morph2023-06-071-16/+20
|
* (wall, native)_clock: Add GetGPUTickGravatar Morph2023-06-071-1/+19
| | | | Allows us to directly calculate the GPU tick without double conversion to and from the host clock tick.
* core_timing: Use CNTPCT as the guest CPU tickGravatar Morph2023-06-071-0/+17
| | | | | Previously, we were mixing the raw CPU frequency and CNTFRQ. The raw CPU frequency (1020 MHz) should've never been used as CNTPCT (whose frequency is CNTFRQ) is the only counter available.
* (wall, native)_clock: Rework NativeClockGravatar Morph2023-06-071-30/+24
|
* core_timing: Use higher precision sleeps on WindowsGravatar Morph2023-03-051-0/+3
| | | | | | The precision of sleep_for and wait_for is limited to 1-1.5ms on Windows. Using SleepForOneTick() allows us to sleep for exactly one interval of the current timer resolution. This allows us to take advantage of systems that have a timer resolution of 0.5ms to reduce CPU overhead in the event loop.
* general: Convert source file copyright comments over to SPDXGravatar Morph2022-04-231-3/+2
| | | | | This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
* common: wall_clock: Check precision against the emulated CPU and CNTFRQGravatar Morph2022-01-301-2/+2
| | | | In addition to requiring nanosecond precision, using the native clock requires that the hardware TSC has a precision greater than the emulated CPU and its clock counter.
* common: wall_clock: Utilize constants for ms, us, and ns ratiosGravatar Morph2022-01-301-0/+4
|
* audio_core: Make shadowing and unused parameters errorsGravatar Lioncash2020-12-031-3/+3
| | | | Moves the audio code closer to enabling warnings as errors in general.
* common/wall_clock: Add virtual destructorsGravatar ReinUsesLisp2020-09-301-0/+2
| | | | | | | | From -fsanitize=address, this code wasn't calling the proper destructor. Adding virtual destructors for each inherited class and the base class fixes this bug. While we are at it, mark the functions as final.
* common: Make use of [[nodiscard]] where applicableGravatar Lioncash2020-08-151-8/+8
| | | | | | Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
* HostTiming: Pause the hardware clock on pause.Gravatar Fernando Sahmkow2020-06-271-0/+2
|
* Common/Tests: Clang Format.Gravatar Fernando Sahmkow2020-06-181-2/+2
|
* Common: Refactor & Document Wall clock.Gravatar Fernando Sahmkow2020-06-181-1/+12
|
* Common: Implement WallClock Interface and implement a native clock for x64Gravatar Fernando Sahmkow2020-06-181-0/+40