Advertisement
krot

code time

Dec 26th, 2020
4,008
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.27 KB | None | 0 0
  1.   statistics(runtime),
  2.     statistics(wall_clock),
  3.  
  4.     % your code here
  5.  
  6.     {_, Time1} = statistics(runtime),
  7.     {_, Time2} = statistics(wall_clock),
  8.     U1 = Time1 * 1000,
  9.     U2 = Time2 * 1000,
  10.     io:format("Code time=~p (~p) microseconds~n",
  11.     [U1,U2]).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement