Thread: Timing issue
View Single Post
  #4  
Old 04-07-2008, 03:30 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The viz.getFrameTime() function returns the current time in seconds. You can use the time module to format it for display. The following code will format the time to hrs:min:secs:
Code:
import time
print time.strftime('%H:%M:%S',time.gmtime(viz.getFrameTime()))
Reply With Quote