You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Konstantin edited this page Jan 31, 2025
·
1 revision
The Timestamp object is used to manage the connection between frames and milliseconds internally. You will usually receive a timestamp when calling getters on time-related properties, such as the delay and duration of a clip.
You can also use the Timestamp externally for higher precision if your application requires it, like this:
import*ascorefrom'@diffusionstudio/core';consttimestamp=newcore.Timestamp(1000);// in millisecondsnewcore.ImageClip({duration: timestamp});timestamp.frames;// 30timestamp.millis;// 1000timestamp.seconds;// 1