Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the time in nanoseconds with actionscript 3

Hi I'm trying to get the current time including the nanoseconds in actionscript 3 for use in flex 4.5. Anyone that can help me out?

like image 356
Siebe Avatar asked Dec 05 '22 21:12

Siebe


2 Answers

The smallest time measure available in Flash Player is milliseconds.

To get current time just create new Date object:

var currentTime:Date = new Date();

See more documentation of Date class here.

like image 102
Constantiner Avatar answered Dec 28 '22 23:12

Constantiner


ActionScript doesn't expose a timer that precise.

like image 29
Samuel Neff Avatar answered Dec 29 '22 00:12

Samuel Neff