flash - Accurately measuring time delta -



flash - Accurately measuring time delta -

as understand, gettimer() inaccurate - on own machine returns value product of ~16. (16, 33, 50, etc.)

is there simple , efficient way more accurately measure time difference (delta) between 2 separate calls in program?

i have looked info on subject, of find seems unnecessarily elaborate.

edit: digging further, , help colleague, apparently can timing using sound. seek creating new sound object, playing , extract position property returned soundchannel-object. there ideas here: stack overflow - accurate bpm event listener in as3

i haven't tried this, seek using date class , extracting milliseconds property it, , utilize that. i'm unsure of how accurate is, in comparing gettimer, might worth experimenting with. see as3: date documentation more information. note date doc explicitly says this: to compute relative time or time elapsed, see gettimer() method in flash.utils package.

other think you're stuck using gettimer, , info returns depends on current os/browser. checked these links out already, otherwise they'll help explain problem:

tinic uro - frame rates in flash player

stack overflow - as3: how accurate gettimer() method , timer class?

flash actionscript-3

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -