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

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -