Skip to content

Instantly share code, notes, and snippets.

@dadoonet
Created September 17, 2012 19:43
Show Gist options
  • Save dadoonet/3739341 to your computer and use it in GitHub Desktop.
Save dadoonet/3739341 to your computer and use it in GitHub Desktop.
ParisJUG_2012_09_11
public class Client {
public static void main(String[] args) {
int NBTEST = 100;
long all = 0;
for (int i=0; i < NBTEST; i++) {
long start = System.nanoTime();
c1();
all += System.nanoTime() - start;
}
System.out.println("Mean: " + all / NBTEST);
}
public static void c1() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment