When using python datetime.now() I only get a resolution close to the millisecond. I need a microsecond resolution for network purposes, or at least being able to mesure the time elapsed between two received packets at a microsecond resolution.
Here is an example of the resolution I get:
from datetime import datetime
for i in range(10):
print(datetime.now().microsecond)
it returns :
224000
239000
247000
255000
264000
272000
284000
295000
308000
319000