Using time -v to calculate execution time. Command not found

Solution 1:

That means the time that you are using is the bash shell built in time which the only option is -p and you cannot even use -V, instead use the actual command with specifying its full path:

/usr/bin/time -v ./a.out

the man page is for the above command that if you do which time, will see /usr/bin/time. For the bash built-in time, you can help time.

Further reading:

  • Where can I find the location of folders for installed programs?
  • How can I get help on terminal commands?