Please include this function in every code

This would help in analysis of performance. Just print the output as a double number. The first value is random.