SyntaxFix
Write A Post
Hire A Developer
Questions
TimeUnit
The following expression uses the TimeUnit enum (Java 5 and later) to convert from nanoseconds to seconds:
TimeUnit.SECONDS.convert(elapsedTime, TimeUnit.NANOSECONDS)