Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const timeFuncRuntime = funcParameter => {
- let t1 = Date.now();
- funcParameter();
- let t2 = Date.now();
- return t2 - t1;
- }
- const addOneToOne = () => 1 + 1;
- timeFuncRuntime(addOneToOne);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement