Not sure I understand equivalency of flash.utils.getTimer() in OpenFL. Both in terms of measuring time, as well as measuring elapsed runtime since start of the application.
Presumably openfl.Lib.getTimer()
should be used in place of flash.Lib.getTimer()
?
In Haxe, I thought getTimer()
was only available when targeting Flash platform; however, it appears functional cross-platform. Is that so?
There are also occurrences in projects where I receive compiler errors when using getTimer()
; although, I’m not exactly sure how to reproduce or isolate the issue. It may be tied to initialization or some order of operations.
While targets using getTimer()
always function perfectly on Flash, mac throws compiler error:
Error : Null Function Pointer
Or targeting neko, I receive compiler error:
Called from blitting/core/Blitting.hx line 32
Called from blitting/core/Blitting.hx line 24
Called from a C function
Called from blitting/core/Blitting.hx line 110
Called from blitting/core/Blitting.hx line 114
Called from openfl/Lib.hx line 85
Called from lime/system/System.hx line 239
Uncaught exception - Invalid call
Any idea what this might relate to?