bash - Capture run time of python script executed inside shell script -
this question has answer here:
- get program execution time in shell 9 answers
i have bash shell script internally calling python script.i know how long python taking execute.i not allowed changes in python script. leads helpful in advance.
you can use time
command runtime of python script.
]$ cat time_test.bash #!/bin/bash # can use: time python script.py time python -c 'import os;os.getenv("home")'
output this
]$ ./time_test.bash real 0m0.010s user 0m0.005s sys 0m0.005s
Comments
Post a Comment