How to get the execution time of code snippet.