IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36993


Ignore:
Timestamp:
Jul 10, 2014, 1:42:21 PM (12 years ago)
Author:
eugene
Message:

move INITTIME and MARKTIME to libohana

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140610/Ohana/src/libohana/include/ohana.h

    r36942 r36993  
    7070# define DTIME(A,B) ((A.tv_sec - B.tv_sec) + 1e-6*(A.tv_usec - B.tv_usec))
    7171# endif
     72
     73# define MARKTIME(MSG,...) {                    \
     74    gettimeofday (&stopTimer, (void *) NULL);   \
     75    float dtime = DTIME (stopTimer, startTimer);        \
     76    fprintf (stderr, MSG, __VA_ARGS__); }
     77
     78# define INITTIME \
     79  struct timeval startTimer, stopTimer; \
     80  gettimeofday (&startTimer, (void *) NULL);
    7281
    7382#ifdef __GNUC__
Note: See TracChangeset for help on using the changeset viewer.