Home / Programming / Programming Languages / Python / Measure running time a routine in Python
Compute the running time of your program in Python
Compute the running time of your program in Python

Measure running time a routine in Python

Print Friendly, PDF & Email

I think this helps us a lot for estimation of how long a program runs in Python. When dealing with a huge amount of data, it takes long time. Showing the running time, started time and end time are useful for logging and improving your program. Certainly there are a few of way to do that. In my view, the following bunch of code is pretty simple and understandable.

Compute the running time of your program in Python

Compute the running time of your program in Python

comments

About Nguyen Vu Ngoc Tung

I love making new professional acquaintances. Don’t hesitate to contact me via nguyenvungoctung@gmail.com if you want to talk about information technology, education, and research on complex networks analysis (i.e., metabolic networks analysis), data analysis, and applications of graph theory.

Specialties: researching and proposing innovative business approaches to organizations, evaluating and consulting about usability engineering, training and employee development, web technologies, software architecture.