gnu-time

GNU implementation of time utility with detailed resource usage reporting

brewmacoslinux
Try with needOr install directly
Source

About

GNU implementation of time utility

Commands

time

Examples

Measure execution time and resource usage of a command$ time sleep 2
Display detailed statistics including memory and CPU usage$ /usr/local/bin/time -v ls -la /tmp
Format output with custom fields (elapsed time, CPU, memory)$ /usr/local/bin/time -f 'Time: %E | CPU: %P | Memory: %M KB' ./script.sh