diff --git a/GB_set_rtc_mode.md b/GB_set_rtc_mode.md index 6b3e9f0..c99768a 100644 --- a/GB_set_rtc_mode.md +++ b/GB_set_rtc_mode.md @@ -7,14 +7,21 @@ typedef enum { } GB_rtc_mode_t; ``` -void GB_set_rtc_mode([[GB_gameboy_t]] *gb, [[GB_rtc_mode_t]] mode); +void GB_set_rtc_mode([[GB_gameboy_t]] *gb, GB_rtc_mode_t mode); In `timing.h` ## Description -TBD +Specifies how the emulator instances emulates a Real Time Clock inside an emulated cartridge: + +* `GB_RTC_MODE_SYNC_TO_HOST`: The RTC follows the time in the host's clock. Even when the emulator instance is [[overclocked, underclocked|GB_set_clock_multiplier]], set to [[turbo mode|GB_set_turbo_mode]], or paused, the in-game RTC will always advanced in one real-world-second intervals. +* `GB_RTC_MODE_ACCURATE`: The RTC timings are accurately emulated. Pausing or changing the speed of the instance will also pause or change the speed of the RTC. ## Thread Safety `GB_set_rtc_mode` is thread-safe and can be called from any thread and context. + +## See Also + +* [[GB_set_rtc_multiplier]] \ No newline at end of file