Advertisement
krot

timer

Oct 27th, 2019
1,682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.20 KB | None | 0 0
  1. timer(M, F, A) ->
  2.     Start = os:system_time(),
  3.     apply(M, F, A),
  4.     os:system_time() - Start.
  5.  
  6. zero_opt(<<>>)->    ok;
  7. zero_opt(<<_:1/binary, Rest/binary>>)-> zero_opt(Rest).
  8.  
  9. t:timer(t,zero_opt,[Big])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement