RTC Elapsed ms

From WikiPrizm
Revision as of 15:18, 31 July 2014 by Gbl08ma (talk | contribs) (Created page with "{{syscall | name = RTC_Elapsed_ms | header = fxcg/rtc.h | index = 0x02C2 | signature = int RTC_Elapsed_ms(int start_value, int duration_in_ms) | synopsis = Checks whether a gi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Header: fxcg/rtc.h
Syscall index: 0x02C2
Function signature: int RTC_Elapsed_ms(int start_value, int duration_in_ms)

Checks whether a given amount of milliseconds has elapsed since a specified ticks count.


  • start_value - ticks count to compare the current time against.
  • duration_in_ms - period in milliseconds one wishes to know whether has passed since start_value was collected.


1 if duration_in_ms has elapsed, 0 if not.


One needs to take care and not use this syscall when start_value has been collected before midnight, and the current time is past midnight, because the ticks count resets at midnight. If such a situation happens, a almost full day will pass before this syscall returns 1.