The Startup
Published in

The Startup

Python — How to measure thread execution time in multithreaded application?

In this piece we will see how to measure thread execution time in a multithreaded python program.

Photo by Chris Ried on Unsplash

Problem

Let’s start with an anecdote — I was working on a python project and it had lot of legacy code (libraries/methods for handling different tasks), this application spawns lot of threads for many IO bound…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store