I\'m trying to use strftime() to microsecond precision, which seems possible using %f (as stated here). However when I try the following code:
import time im
You are looking at the wrong documentation. The time module has different documentation.
time
You can use the datetime module strftime like this:
datetime
>>> from datetime import datetime >>> >>> now = datetime.now() >>> now.strftime("%H:%M:%S.%f") '12:19:40.948000'