[Hindi] How To Find Execution Time Of A Python Program Using Time Module?

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

from time import time


def func1(a, b):
#Rohan Das
return a + b

def func2(a, b):
#By CodeWithHarry
num1 = a
num2 = b
if(a>b and a!=3):
pass
sum([4, 3])
return a+b


if __name__ == '__main__':
init = time()
for i in range(0,
func1(3, 5)


for i in range(0,
func2(3, 5)
print("Overall Time: ", time() - init)

CodeWithHarry
Автор

Best youtube tutorials i have ever seen ... great job..keep going👌

Amandeep-iljd
Автор

Bhai Thank you aap itne mehnat krre hai ham logo k liye . Mai ek cheez btana chaunga apki python tutorial wali jo 129 video ki jo playlist hai usme ek exercise hai jisme apne healthy programmer krke ek program banwaya hai usme apne time()- init_water kiya hai to us cheez ko maine aapki is video mai samjha . Thank you, you are a legend.

VIKASKUMAR-rxhw
Автор

Sirf Aapka Videos Dekhne Ke Liye Net recharge Kiya! Now It Worth recharging!

RohanDasRD
Автор

Harry bhai please continue this Series! ❤️

ranajitdutta
Автор

Please make.. All videos about dynamic programming python...

lipubhoi
Автор

Sir l am a beginner so from where l can start my journey from your channel.

gulkeshyadav
Автор

I love your videos.. And.. Dynamic programming python is needed sir.. Plzz

lipubhoi
Автор

Sir, micropython mein bhi lecture banado....

santamayengbam
Автор

Grt video👍 Harry... Is there any video of urs on Python multithreading with limitations?

ratkush
Автор

Sir pls makes the videos on cbse based syllabus for class 12th pls sir, and make the video of important ques for cbse 2020 board exam

karangusain
Автор

Sir, could u pls upload the full tutorial on computer vision in python

RoshanSingh-ceqm
Автор

Sir mai aap ke chinal par new hu or mujhe samajh nahi aata ke mai kon sa pahle sekhu python sekhu ke java ya phir c programming so please baar hehp me?

mdsadiq
Автор

Sir aap hyperion FDME prepare karwa sakte hai

Pihu_Singh
Автор

Hello sir, i am Nishant Kumar, sir i am facing issues while converting an python file to exe file, sir as u told in the video i did all the things, but when i type pyinstaller --onefile and the python file name and press enter, after some time when in the powershell and as well as the in the notifications i get msg which says that 'windows defender found a virus ' and in the powershell it says that process stopped as the file contains virus ' .. sir plz help me sir, my code was very simple, just for trial purpose i wrote
player_name = input("whats your name")
print('hello', player_name, "welcome to the mind reader game")

Sir plz help

nishant_kumar
Автор

Pls guide me i want to trade share market using stocknote samco API i am biginer //pls advice step by step what do i do

BhaveshPatel-wbrf
Автор

its showing that the name variable is not defined pls reply

sopyop
Автор

bhai plz thoda sa zoom krke bnaye vedioes

vipuulpandit
Автор

Sir the time is changing after every run what we do for that

brahmanandakabi
Автор

Never use the Time module to time functions! Use the timeit module because it is much safer and reliable. It also works cross-platform.

david_shiko