Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to time a python script

from datetime import datetime
start = datetime.now()
# some kind of code
print(datetime.now() - start)
Comment

PREVIOUS NEXT
Code Example
Python :: array of 1 to 100 python 
Python :: python bytes to dict 
Python :: python set cwd to file location 
Python :: sorting rows and columns in pandas 
Python :: how to send a message in a specific channel discord.py 
Python :: pandas replace nonetype with empty string 
Python :: discord.py make command admin only 
Python :: how to read tsv file python 
Python :: numpy read image 
Python :: how to save a png seaborn pandas 
Python :: python filter array 
Python :: cv2 draw box 
Python :: timestamp to date python 
Python :: python messagebox 
Python :: how to install python3 in ubuntu 
Python :: install googlesearch for python 
Python :: change directory in python os 
Python :: How to print list without for loop python 
Python :: python roman to integer 
Python :: how to get latitude and longitude from address in python 
Python :: pytest ignore warnings 
Python :: python random randint except a number 
Python :: find the closest position by time list python 
Python :: sklearn minmaxscaler pandas 
Python :: save numpy array to csv 
Python :: pandas rename column 
Python :: python print dict pretty 
Python :: transpose a matrix using list comprehension 
Python :: how to pause code for some time in python 
Python :: df dropna ensure that one column is not nan 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =