simple timer based on frames per second and duration