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 can use datetime's strftime function to get this. The problem is that time's strftime accepts a timetuple that does not carry microsecond information.
from datetime import datetime datetime.now().strftime("%H:%M:%S.%f")
Should do the trick!