How do I get time of a Python program’s execution? The simplest way in Python: This assumes that your program takes at least a tenth of second to run. Prints: