Created timer class to handle timing tasks.