add profile codes for multicore version
[IRC.git] / Robust / src / Runtime / DSTM / interface / dsmdebug.h
index 0dd0e691328ad527817183bd88f81dcc140fbe7c..7f5753487bf12917bdca62c295f5508a795914d8 100644 (file)
 
 #define ARRAY_SIZE 10100
 #define GETSTARTDELAY(start, count) { \
-  struct timeval tv; \
-  count++; \
-  gettimeofday(&tv, NULL); \
-  start = tv.tv_sec+(tv.tv_usec/1000000.0); \
+    struct timeval tv; \
+    count++; \
+    gettimeofday(&tv, NULL); \
+    start = tv.tv_sec+(tv.tv_usec/1000000.0); \
 }
 
 #define GETSTART(start) { \
-  struct timeval tv; \
-  gettimeofday(&tv, NULL); \
-  start = tv.tv_sec+(tv.tv_usec/1000000.0); \
+    struct timeval tv; \
+    gettimeofday(&tv, NULL); \
+    start = tv.tv_sec+(tv.tv_usec/1000000.0); \
 }
 
 #define GETENDDELAY(start, end, time) { \
-  struct timeval tv; \
-  gettimeofday(&tv, NULL); \
-  end = tv.tv_sec+(tv.tv_usec/1000000.0); \
-  time = (end-start); \
+    struct timeval tv; \
+    gettimeofday(&tv, NULL); \
+    end = tv.tv_sec+(tv.tv_usec/1000000.0); \
+    time = (end-start); \
 }
 
 #endif