zero-9376
August 29th, 2007, 09:29 AM
Hi, im trying to create a string which i will use to name files, im recording data and want to name the file based on the current time of day. the problem is that i need better than 1 second accuracy so this is what i have done...comments/suggestions please
import time
time_now_sec = time.mktime(time.localtime())
time_now_mic = time.time()
time_str = time.asctime()
milli = time_now_mic - time_now_sec
print time_str,".",milli
please not that i started learning python yesturday
thanks
import time
time_now_sec = time.mktime(time.localtime())
time_now_mic = time.time()
time_str = time.asctime()
milli = time_now_mic - time_now_sec
print time_str,".",milli
please not that i started learning python yesturday
thanks