Skip to content

Instantly share code, notes, and snippets.

@sjamesr
Created November 20, 2014 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjamesr/ad43ae2d5f81fd394544 to your computer and use it in GitHub Desktop.
Save sjamesr/ad43ae2d5f81fd394544 to your computer and use it in GitHub Desktop.
$ time scanimage -d net:localhost:pixma --resolution 600 > /tmp/blah
real 1m47.591s
user 0m0.015s
sys 0m0.159s
Equivalent Java test:
SaneDevice device = session.getDevice("pixma");
device.open();
device.getOption("resolution").setIntegerValue(600);
Stopwatch stopwatch = Stopwatch.createStarted();
device.acquireImage();
System.out.println(stopwatch);
Output:
1.538 min
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment