This source file includes following definitions.
- opal_timer_base_get_cycles
- opal_timer_base_get_usec
- opal_timer_base_get_freq
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 #ifndef OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
  20 #define OPAL_MCA_TIMER_SOLARIS_TIMER_SOLARIS_H
  21 
  22 #include <sys/time.h>
  23 
  24 typedef hrtime_t opal_timer_t;
  25 
  26 
  27 static inline opal_timer_t
  28 opal_timer_base_get_cycles(void)
  29 {
  30     return 0;
  31 }
  32 
  33 static inline opal_timer_t
  34 opal_timer_base_get_usec(void)
  35 {
  36     
  37     return gethrtime() / 1000;
  38 }
  39 
  40 static inline opal_timer_t
  41 opal_timer_base_get_freq(void)
  42 {
  43     return 0;
  44 }
  45 
  46 
  47 #define OPAL_TIMER_CYCLE_NATIVE 0
  48 #define OPAL_TIMER_CYCLE_SUPPORTED 0
  49 #define OPAL_TIMER_USEC_NATIVE 1
  50 #define OPAL_TIMER_USEC_SUPPORTED 1
  51 
  52 #endif