Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

Thanks.

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

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.