Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. const timeFuncRuntime = funcParameter => {
  2. let t1 = Date.now();
  3. funcParameter();
  4. let t2 = Date.now();
  5. return t2 - t1;
  6. }
  7.  
  8. const addOneToOne = () => 1 + 1;
  9.  
  10. timeFuncRuntime(addOneToOne);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement