1. import datetime
    2. start = datetime.datetime.now()
    3. end = datetime.datetime.now()
    4. print(end - start)