3 class TimingSingleton {
4 static TimingSingleton singleton = new TimingSingleton( );
5 static int64_t startTime = 0;
7 static int64_t totalTime = 0;
13 static TimingSingleton getInstance( ) {
18 static void startTime( ) {
19 startTime = System.nanoTime();
22 static void endTime( ) {
23 totalTime += System.nanoTime() - startTime;
27 static int64_t getTime( ) {