I need to measure elapsed time in several places in my application. Therefore, I am looking for an API that will give me access to monotonically increasing hours, which are not affected by changes in the system clock or daylight saving time (something like the number of milliseconds, since loading will be sufficient).
Sample code to illustrate my problem:
var t1 = SomeClockFunction();
I canโt just use the system clock, as this can lead to incorrect measurements if between t1 and t2, the clock is changed by the user or the phone enters / exits summer time.
Objective-C users have access to CACurrentMediaTime () or mach_absolute_time (). What is equivalent in MonoTouch?
Haakon
source share