Function execution time analysis

Hi, I wrote a program, but some functions are quite slow. I am willing to analysis the execution time for each function. Is there any time module I can resort to?

I noticed there are some modules like timere, but there is few starter/demo code so I don’t know how to use them :frowning:

Ohhh… I found Running time in Ocaml - Stack Overflow quite useful!

Also this helps as well ocaml - How can I get the current system time in milliseconds or nanosec? - Stack Overflow

1 Like