Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
58
rated 0 times [  65] [ 7]  / answers: 1 / hits: 78537  / 13 Years ago, sat, may 14, 2011, 12:00:00

So, I know I can get current time in milliseconds using JavaScript. But, is it possible to get the current time in nanoseconds instead?


More From » time

 Answers
27

Achieve microsecond accuracy in most browsers using:


window.performance.now()

See also:



[#92241] Thursday, May 12, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jennie

Total Points: 593
Total Questions: 102
Total Answers: 106

Location: Federated States of Micronesia
Member since Fri, Sep 16, 2022
2 Years ago
jennie questions
;