I 've a problem with using the time program inside a Shell script.
On command line its working well an d give me the execution time of my code.
But inside Shell script :
./test2.sh: time: not found
whereis time ? it gives me nothing see below!
[email protected] ~ $ whereis time
time: /usr/include/time.h /usr/share/man/man7/time.7.gz /usr/share/man/man2/time.2.gz
"FIND" gives me this ??
[email protected] ~ $ sudo find / -name time
So who knows whereis "time" ? an alias toward another program ??
But perhaps you have a better way to measure execution time (in ms please)inside a Shell script ??
Thank you for any help