Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As part of a college assignment, I must time how long it takes GPG to encrypt a large file. However, I'm not sure how to go about it. A stop watch wouldn't be very accurate!


P.S. By helping me, you're not "spoiling" the integrity of the assignment.

share|improve this question
up vote 0 down vote accepted

Assuming you're running a unix-like system (Linux, *BSD, OSX, Windows+Cygwin, Windows+msys, etc.):

time gpg -e /path/to/large/file

The “user” time is the time spent on the encryption, plus a negligible amount for parsing the configuration file and so on. The “system” time is mostly the time spent on I/O (probably negligible).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.