-/*****************************************************************************
- *Function name
- * timecmp : compare two time
- *Input params
- * t1 : first time
- * t2 : second time
- *Return value
- * int : 0: t1 == t2; -1: t1 < t2; 1: t1 > t2
- ****************************************************************************/
-
-int timecmp(LttTime * t1, LttTime * t2)
-{
- if(t1->tv_sec < t2->tv_sec) return -1;
- if(t1->tv_sec > t2->tv_sec) return 1;
- if(t1->tv_nsec < t2->tv_nsec) return -1;
- if(t1->tv_nsec > t2->tv_nsec) return 1;
- return 0;
-}