Skip to content

Instantly share code, notes, and snippets.

@roramirez
Created May 17, 2019 16:02
Show Gist options
  • Save roramirez/cebda080687997e11e05593b1d5ab39b to your computer and use it in GitHub Desktop.
Save roramirez/cebda080687997e11e05593b1d5ab39b to your computer and use it in GitHub Desktop.
import datetime
a1 = datetime.datetime.now()
import re
import os
a2 =datetime.datetime.now()
print(a1, a2, a2 - a1)
b1 = datetime.datetime.now()
b2 = datetime.datetime.now()
print(b1, b2, b2 - b1)
c1 = datetime.datetime.now()
for i in range(1, 10000):
import re
a = i
c2 =datetime.datetime.now()
print(c1, c2, c2 - c1)
c1 = datetime.datetime.now()
for i in range(1, 10000):
import re
a = i
c2 =datetime.datetime.now()
print(c1, c2, c2 - c1)
d1 = datetime.datetime.now()
for i in range(1, 10000):
a = i
d2 =datetime.datetime.now()
print(d1, d2, d2 - d1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment