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

I have a CanoScan lide 25 scanner . How can i measure the time to scan a document (trying different dpi) . Any command line tools ? Either Windows or Linux ...

share|improve this question
up vote 1 down vote accepted

On Linux systems, use the time command to run a command and output some basic system time stats after the command finishes. You'll need a commandline to initiate the scan.

user@host:$ time some-command arg1 arg2 arg3
<some-command output>

real    0m1.140s
user    0m0.015s
sys     0m0.016s
  • real is the elapsed real ("wall") time the process takes to run, start-to-finish;
  • user is the time the process used directly in user-mode (ie, not counting time the CPU spent servicing other processes);
  • sys is the time the process used directly in kernel-mode (again, not counting time the CPU spent on other processes).

time can summarize lots of other system-resource usage on processes; see man time on your system for details and options.

This also works in the Cygwin unix environment for Windows if you can locate a commandline tool for grabbing a scan.

share|improve this answer

How can i measure the time to scan a document

This sure works for your scans, whether in Windows or Linux:

alt text

If you want a software solution:

TimeLeft is a versatile desktop utility - it can be used as a countdown clock, reminder, clock, alarm clock, tray clock, stopwatch, timer, sticker, auction watch, work days/hours countdown clock and time synchronization utility.

TimeLeft is freeware (Windows only).

... from the command line, you can use this:

STOPWATCH can be used to calculate the elapsed time, (in seconds), in a batch file. It does this by redirecting the current time out to a file when the "start" command is given, and then reading that time back in when a "stop" command is given. For example:

C:\>stopwatch start > timestamp.txt
... other batch commands here ...
C:\>stopwatch stop < timestamp.txt

Note that the output from the stop command can be piped or redirected to a program or file if required, and multiple "stop" commands can be executed to get intermediate timestamps. If you want to save the output of the "stopwatch stop" command to a variable, DOS/Windows doesn't make things easy for you. Here's an example that includes an ugly workaround to get the elapsed time into a variable called "elapsed_time":

@echo off
stopwatch start > timestamp.txt
... other batch commands here ...
stopwatch stop < timestamp.txt > elapsed.txt
for /F %%a in ('type elapsed.txt') do set /a elapsed_time=%%a
echo %elapsed_time%
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.