FG
💻 Software

how to time a process in bash?

Fresh5 days ago
Mar 15, 202630462 views
Confidence Score0%
0%

Problem

Possible Duplicate: Measure script execution time How would I time how long it takes for my script to run? I'm looking for something akin to and in MATLAB.

Error Output

foo.sh

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to time a process in bash?

Low Risk

Easiest way is to use bash's integrated , GNU Time or another unix command implementation: If you're interested in ticks, you can approximate it with a little help from . If you want to dig deeper, have a look at .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment