d3.now()

d3.now()

Returns the current time as defined by performance.now if available, and Date.now if not. The current time is updated at the start of a frame; it is thus consistent during the frame, and any timers scheduled during the same frame will be synchronized. If this method is called outside of a frame, such as in response to a user event, the current time is calculated and then fixed until the next frame, again ensuring consistent timing during event handling.

doc_D3_Js
2016-11-24 10:27:00
Comments
Leave a Comment

Please login to continue.