Skip to content

Instantly share code, notes, and snippets.

@shasisingh
Created August 15, 2023 16:44
Show Gist options
  • Save shasisingh/8280187920dcf5432ff23c56c9d1eca0 to your computer and use it in GitHub Desktop.
Save shasisingh/8280187920dcf5432ff23c56c9d1eca0 to your computer and use it in GitHub Desktop.
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);
}
@shasisingh
Copy link
Author

app performance check

@shasisingh
Copy link
Author

app performance check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment