git-svn-id: http://ltt.polymtl.ca/svn@150 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 31 Jul 2003 20:13:58 +0000 (20:13 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 31 Jul 2003 20:13:58 +0000 (20:13 +0000)
ltt/branches/poly/ltt/tracefile.c

index 31d8734bc693d850cb568d52ef4a26fb47472de9..8edeb54cb44c692848b66848139c89f69c809118 100644 (file)
@@ -40,34 +40,6 @@ int timecmp(LttTime * t1, LttTime * t2);
 int getIntNumber(int size1, void *evD);
 
 
-/* Time operation macros for LttTime (struct timespec) */
-/*  (T3 = T2 - T1) */
-#define TimeSub(T3, T2, T1) \
-do \
-{\
-  (T3).tv_sec  = (T2).tv_sec  - (T1).tv_sec;  \
-  (T3).tv_nsec = (T2).tv_nsec - (T1).tv_nsec; \
-  if((T3).tv_nsec < 0)\
-    {\
-    (T3).tv_sec--;\
-    (T3).tv_nsec += 1000000000;\
-    }\
-} while(0)
-
-/*  (T3 = T2 + T1) */
-#define TimeAdd(T3, T2, T1) \
-do \
-{\
-  (T3).tv_sec  = (T2).tv_sec  + (T1).tv_sec;  \
-  (T3).tv_nsec = (T2).tv_nsec + (T1).tv_nsec; \
-  if((T3).tv_nsec >= 1000000000)\
-    {\
-    (T3).tv_sec += (T3).tv_nsec / 1000000000;\
-    (T3).tv_nsec = (T3).tv_nsec % 1000000000;\
-    }\
-} while(0)
-
-
 
 /*****************************************************************************
  *Function name
This page took 0.026261 seconds and 4 git commands to generate.