added frame time functionality