Difference between revisions of "RTC Elapsed ms"

From WikiPrizm
Jump to navigationJump to search
(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...")
(No difference)

Revision as of 15:18, 31 July 2014


Synopsis

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.

Parameters

  • 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.

Returns

1 if duration_in_ms has elapsed, 0 if not.

Comments

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.