![]() ZBasic System Library
327
ZBasic Microcontrollers
Type
Function returning Single
Invocation
Timer()
Discussion
This function returns the current RTC time represented as the number of seconds since midnight with a
best-case resolution of 1/F_RTC_TICK. Note that Register.RTCTick gives you the equivalent
information albeit in the form of a 32-bit value representing the number of RTC ticks (increments of
1/F_RTC_TICK) since midnight. Depending on your needs, one or the other may be more efficient to
use.
Compatibility
This subroutine is not available if the RTC is not enabled in your application.
|