time (measure a command)
Në shqip: time (mat kohën e komandës)
ShpjegimiSQ
Vendos „time“ para çdo komande dhe në fund merr tri kohë: real (koha e orës), user (CPU për programin) dhe sys (CPU për kernel-in). Mënyrë e shpejtë për të krahasuar dy zgjidhje.
EnglishEN
Put “time” before any command and you get three timings at the end: real (wall-clock), user (CPU for the program) and sys (CPU for the kernel). A quick way to compare two solutions.
Si ta mendosh
Si kronometri i trajnerit në pistë.
Lexoje në anglisht
Like a coach's stopwatch at the track.
Shembull kodibash
time npm run build
# real 0m12.4s user 0m18.1s sys 0m1.9s