Created
August 1, 2017 03:22
-
-
Save ezekielbaniaga/abc3f88f9d9d4365bf3a9956f9b0f9aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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