Page 1 of 1
option rtc
Posted: 08 February 2019, 12:19 PM
by rich
With a native device what does not work if "option rtc off" is set?
Thanks
Richard
Posted: 08 February 2019, 16:38 PM
by dkinzer
Firstly, nothing related to multi-tasking is supported if the RTC is off, essentially your application must be a single task. Secondly, none of the routines that deal with reading or setting the RTC are supported nor is the StopWatch. Also, DelayUntilClockTick() is not supported if there is no RTC.
Pause() works slightly differently when the RTC is disabled.
GetMicroTime() and GetElapsedMicroTime() need the RTC.
The optional timeout capability of GetQueue() needs the RTC.
The X10 routines require the RTC to be enabled.
Note that although the Sleep() and Delay() routines normally use the RTC, they are usable with no RTC but there are some subtle differences in the way that they work. These differences are described in the entries in the ZBasic System Library manual for those routines.
Posted: 09 February 2019, 9:39 AM
by rich
Thanks much.
Richard