#convert Date.now() timestamp to performance.now()

3 messages · Page 1 of 1 (latest)

indigo zenith
#

Hello, I currently have a unix timestamp that I receive from my server (Date.now() like, and guaranteed to be in the future). How can I convert this to a performace.now() like timestamp?

#

I need the conversion to be pretty accurate

real prairie
#

I'm not 100% sure what you mean - I don't think you can convert from a low-precision timestamp to a higher precision one.