Created timer class