I am using command time
to find how much time two commands are taking to execute one process (one after another). However, sometimes it gives:
command 1 elapsed time is 5:34.05
and
command 2 elapsed time is 6:32.98
But, in another window where top
command is running, it shows,
command 1 TIME+ is 2:34.05
command 2 TIME+ is 2:14.09
Can anybody help me why is this happening means when time command says that command 1 takes less time at that same time top command says completely opposite?