WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Precision Position Tracker (PPT) (https://forum.worldviz.com/forumdisplay.php?f=9)
-   -   Printing of System Time (https://forum.worldviz.com/showthread.php?t=1220)

Uttama_vizard 09-18-2007 03:43 PM

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

farshizzo 09-18-2007 03:57 PM

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.

Uttama_vizard 09-19-2007 02:38 PM

It works fine.

Thanks


All times are GMT -7. The time now is 02:17 AM.

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