Created
November 20, 2014 16:27
-
-
Save sjamesr/ad43ae2d5f81fd394544 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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