wil19558@fediverser.communick.devB to Python@fediverser.communick.devEnglish · 1 year agoTIL that datetime.utcnow() is faster than datetime.now()www.dataroc.caexternal-linkmessage-square6fedilinkarrow-up11arrow-down10cross-posted to: python_dev@lemmy.pastwind.top
arrow-up11arrow-down1external-linkTIL that datetime.utcnow() is faster than datetime.now()www.dataroc.cawil19558@fediverser.communick.devB to Python@fediverser.communick.devEnglish · 1 year agomessage-square6fedilinkcross-posted to: python_dev@lemmy.pastwind.top
minus-squareM4mb0@fediverser.communick.devBlinkfedilinkEnglisharrow-up1·1 year agoTry this one: results["now()"] = timeit.timeit( setup="import datetime; now=datetime.datetime.now", stmt="now()", number=number )
minus-squarewil19558@fediverser.communick.devOPBlinkfedilinkEnglisharrow-up1·1 year agoInteresting! I’m compiling user suggestions: I’ll do a round 2 with comparison between Python versions, Ubuntu, WSL and Windows. Thanks for the feedback!
Try this one:
Interesting! I’m compiling user suggestions: I’ll do a round 2 with comparison between Python versions, Ubuntu, WSL and Windows.
Thanks for the feedback!