objective c - Why use CFTimeInterval instead of just double? -


what reason of using cftimeinterval instead of double in objective c?

the actual type used might change 1 platform another, int did when cpus transitioned 32 64bits. also, variables defined platform independent type considered more self descriptive - nobody wonder if cftimeinterval variable in hours, milliseconds, etc, because type documented mean seconds.


Comments