Skip to content

How to use Webapi.Performance.now() #104

Answered by spocke
t-gebauer asked this question in Q&A
Discussion options

You must be logged in to vote

It's defined here it takes a window instance and returns a performance t instance.

https://github.com/tinymce/rescript-webapi/blob/main/src/Webapi/Dom/Webapi__Dom__Window.res#L54

So window->Window.performance->Performance.now should work.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by t-gebauer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants