Whirlpool Corporation Interview Question

How to measure execution time of a function