Game Logic: getTimeScale

getTimeScale()
  • Returns the multiplier between real and simulation time

Return Type:
  • float number
Range:
  • 0.00 to ???
Note:
  • The default Time Scale is 1.0
     
  • A Time Scale of less than 1.0 means that the simulation is going slower than real-time
     
  • A Time Scale of greater than 1.0 means that the simulation is going faster than real-time
Sample Code

################## get the multiplier between real and simulation time
  

# import bge
import bge

# get the time scale
scale_time = bge.logic.getTimeScale()