SyntaxFix
Write A Post
Hire A Developer
Questions
You need to import time and then use time.time() method to know current time.
import time start_time=time.time() #taking current time as starting time #here your code elapsed_time=time.time()-start_time #again taking current time - starting time