how to measure time of code in shell ?

I have jetson tk1 with Linux tegra-ubuntu 3.10, i am used to measuring time with

time

command, but when i tried it on jetson it said that command is not found, so how to measure running time of code from the shell?

Did you flash your Jetson Development Kit via JetPack (https://developer.nvidia.com/embedded/jetpack)?

sudo apt-get install time

…this might be available in the default repositories, if not we can figure out which one it is.

Yes i flashed it via Jetpack

sudo apt-get install time

Worked, Thanks