Created
August 15, 2023 16:44
-
-
Save shasisingh/8280187920dcf5432ff23c56c9d1eca0 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
public static void main(String[] args) throws InterruptedException { | |
var start = Instant.now(); | |
verySlow(); | |
var end= Duration.between(start,Instant.now()).toMillis(); | |
System.out.printf("Time Taken: %dms%n",end); | |
} | |
private static void verySlow() throws InterruptedException { | |
Thread.sleep(1000); | |
} |
app performance check
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app performance check