Created
August 1, 2017 03:22
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
public static void main(String[] args) throws IOException { | |
File file = new File( "D:\\test images\\8.png" ); | |
long start = System.nanoTime(); | |
ImageCrypto.applyXor(file); | |
long end = System.nanoTime() - start; | |
System.out.printf("Took: %d nanoseconds or %d milliseconds\n", end, (end/1000000)); | |
} | |
Output: | |
Took: 1085333 nanoseconds or 1 milliseconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment