Difference between revisions of "RTC GetTicks"

From WikiPrizm
Jump to navigationJump to search
(Created page with "{{syscall | name = RTC_GetTicks | index = | signature = int RTC_GetTicks(void) | header = fxcg/rtc.h | synopsis = Returns the number of ticks elapsed since the RTC was [[RTC_...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{syscall
 
{{syscall
 
| name = RTC_GetTicks
 
| name = RTC_GetTicks
| index =  
+
| index = 0x2C1
 
| signature = int RTC_GetTicks(void)
 
| signature = int RTC_GetTicks(void)
 
| header = fxcg/rtc.h
 
| header = fxcg/rtc.h
| synopsis = Returns the number of ticks elapsed since the RTC was [[RTC_Reset|last reset]]. The RTC ticks at 128 Hz.
+
| synopsis = Gets the number of ticks elapsed since midnight. The RTC ticks at 128 Hz.
 +
| returns = The number of ticks since midnight, resetting every day. A tick occurs every 1/128, approximately 0.00781, second.
 
}}
 
}}
 +
[[Category:Syscalls:RTC]]

Latest revision as of 19:00, 10 February 2015


Synopsis

Header: fxcg/rtc.h
Syscall index: 0x2C1
Function signature: int RTC_GetTicks(void)

Gets the number of ticks elapsed since midnight. The RTC ticks at 128 Hz.

Returns

The number of ticks since midnight, resetting every day. A tick occurs every 1/128, approximately 0.00781, second.