WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-18-2007, 03:43 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Printing of System Time

I want to print system time for some actions such as keyboard in Vizard in a .dat file. I am able to access the elasped time but not the current system time in the hrs:min:sec format.

Has anybody done it?

Thanks

Uttama
Reply With Quote
  #2  
Old 09-18-2007, 03:57 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Have a look at the time module that comes with Python. For example, this should print out the time in Hour:Minute:Second format:
Code:
import time
print time.strftime('%H:%M:%S',time.localtime())
Also, please post Vizard related questions in the Vizard forum next time.
Reply With Quote
  #3  
Old 09-19-2007, 02:38 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
It works fine.

Thanks
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC