Game Logic: getFrameTime

getFrameTime()
  • Returns the current Frame time in seconds

Return Type:
  • float number

 

 

Sample Code

################## get the current frame time
  

# import bge
import bge

# get the frame time
sim_time = bge.logic.getFrameTime()