#!/usr/bin/env python3

import math
import time

# times in seconds since last call
class DeltaT:
 myTime = time.perf_counter()
 def diff():
   newTime = time.perf_counter()
   deltaTime = newTime - DeltaT.myTime
   DeltaT.myTime = newTime
   return deltaTime

print(time.perf_counter())
print()
print(DeltaT.diff())
for i in range(int(1e7)):
  pow(math.log(i+1.0,10),math.log(i+1.0,10))
print(DeltaT.diff(), " time used (in secconds)")
