The time command is used to determine how long a given command takes to run. It is useful for testing the performance of your scripts and commands. Both Bash and Zsh, the most widely used Linux shells have their own built-in versions of the time command which take precedence over the Gnu time command.
Read more