SyntaxFix
Write A Post
Hire A Developer
Questions
Even better!
long tStart = System.nanoTime(); long tEnd = System.nanoTime(); long tRes = tEnd - tStart; // time in nanoseconds
Read the documentation about nanoTime()!