Could somebody be so kind as to point me towards some erlang code which allows me to time how long it takes to run certain pieces of code?
I havent seen an erlang library where this is available?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
erlang:statisticsfunction.This is used in Joe Armstrong’s Programming Erlang book (p141).
e.g.
In this example
U1is the CPU time andU2is the total elapsed time (wall clock time).