CurrentTime

The CurrentTime property returns how much time has passed since the start of the game's execution in seconds. This value changes every frame - specifically when calling FlatRedBallServices.Update. This value will only change whenever FlatRedBallServices.Update, meaning it will be the same value throughout the entire frame. Therefore, this value can be used to uniquely identify a frame.

CurrentTime advances according to TimeFactor, which defaults to 1. If TimeFactor is greater than 1, then CurrentTime advances more quickly. If TimeFactor is less than 1, CurrentTime advances more slowly.

CurrentTime is not affected by pausing the game. If a screen is paused, CurrentTime still advances normally every frame.

Last updated