simple timer for debugging and performance analysis