4 class TimingSingleton {
5 private static TimingSingleton singleton = new TimingSingleton( );
6 private static long startTime = 0;
8 private static long totalTime = 0;
10 private TimingSingleton() {
14 public static TimingSingleton getInstance( ) {
19 public static void startTime( ) {
20 startTime = System.nanoTime();
23 public static void endTime( ) {
24 totalTime += System.nanoTime() - startTime;
28 public static long getTime( ) {