bash - Capture run time of python script executed inside shell script -


this question has answer here:

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

Popular posts from this blog

cookies - Yii2 Advanced - Share session between frontend and mainsite (duplicate of frontend for www) -

angular - password and confirm password field validation angular2 reactive forms -

php - Permission denied. Laravel linux server -