The Global Clock

Don't mind the mess!

We're currently in the process of migrating the Panda3D Manual to a new service. This is a temporary layout in the meantime.

The global clock is an instance of the ClockObject class. It gets imported into the global namespace when you load the DirectStart/Showbase modules.

To get the time (in seconds) since the last frame was drawn:

dt = globalClock.getDt()

Another useful function is the frame time (in seconds, since the program started):

frameTime = globalClock.getFrameTime()

Incomplete Section

Note: this section is incomplete. It will be updated soon.

Previous Top Next