Using the command time

Hello everyone, I’m using the command “time” in order to measure the amount of time my deployment takes. I understand that real time is the total time it took to build the infrastructure. I’m curious about what the sys and user time are. Can anyone explain please?

real 11m31.808s
user 0m44.703s
sys 5m39.906s

Thanks in advance.

Those are the amount of CPU time consumed (userspace & system). For multi-code capable applications you could find more CPU time is used that real time, but usually you’ll find the application is waiting for I/O or CPU scheduling instead of constanctly doing processing, so the real time will be a lot longer than the CPU time.