While the python time module can do a decent job of timing, panda has a built in timing system that allows for lag and cpu stutter.