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.

link|improve this question
feedback

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).

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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