Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- statistics(runtime),
- statistics(wall_clock),
- % your code here
- {_, Time1} = statistics(runtime),
- {_, Time2} = statistics(wall_clock),
- U1 = Time1 * 1000,
- U2 = Time2 * 1000,
- io:format("Code time=~p (~p) microseconds~n",
- [U1,U2]).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement