Ignore:
Timestamp:
Jul 17, 2010, 3:56:20 PM (9 years ago)
Author:
cameron
Message:

Wall timer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/perflib/perfsec.h

    r493 r517  
     1#ifndef PERFSEC_H
     2#define PERFSEC_H
    13
     4#if defined(WALL_TIMING)
     5#include "WallTime.h"
     6#elif defined(BUFFER_PROFILING)
    27#include "BOM_Profiler.h"
    3 
    4 #if defined(CODE_CLOCKER)
     8#elif defined(CODE_CLOCKER)
    59        #include "../cclib/cc.h"
    610        #include "../cclib/cc.cxx"     
    711#endif
    812
    9 #if defined(BUFFER_PROFILING)
     13#if defined(WALL_TIMING)
     14
     15        #define PERF_SEC_INIT(timer) \
     16                timer = init_Wall_timer()
     17       
     18        #define PERF_SEC_START(timer) \
     19                start_Wall_interval(timer)
     20       
     21        #define PERF_SEC_END(timer,elems) \
     22                end_Wall_interval(timer,elems)
     23       
     24        #define PERF_SEC_DUMP(timer) \
     25                dump_Timer_Table(timer)
     26       
     27        #define PERF_SEC_DESTROY(timer) \
     28                destroy_Wall_timer(timer)       
     29       
     30#elif defined(BUFFER_PROFILING)
    1031
    1132        #define PERF_SEC_INIT(timer) \
     
    4970
    5071#endif
     72#endif
    5173
Note: See TracChangeset for help on using the changeset viewer.