summaryrefslogtreecommitdiff
path: root/examples/pybullet/examples/profileTiming.py
blob: 7b761fc9bcb9e5a240a2dff02e931ed6d0b2f388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import pybullet as p
import time

p.connect(p.GUI)

t = time.time()+0.1

logId = p.startStateLogging(p.STATE_LOGGING_PROFILE_TIMINGS, "haha")
while (time.time()<t):
	p.submitProfileTiming("pythontest")
p.stopStateLogging(logId)