a simple timer to measure, get and log elapsed time.