A simple tool for measuring the time a function needs to complete.