Game Logic: getClockTime

getClockTime()
  • Returns the current simulation time in seconds

Return Type:
  • float number

 

Sample Code

################## get the current simulation time
  

# import bge
import bge

# get the simulation time
sim_time = bge.logic.getClockTime()