Ejemplo n.º 1
0
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_RTS_GET_TIMEBASE
  return vt_ticks_per_sec;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1000000LL;
#endif
}
Ejemplo n.º 2
0
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_GETHRTIME
  return 1e9;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1e6;
#endif
}
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_GETTIMEOFDAY
  return 1000000LL;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1000000LL;
#endif
}
Ejemplo n.º 4
0
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_MMTIMER
  return mmdev_ticks_per_sec;
#elif TIMER == TIMER_CLOCK_GETTIME
  return 1000000000LL;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1000000LL;
#endif
}
Ejemplo n.º 5
0
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_RTC
  return vt_ticks_per_sec;
#elif TIMER == TIMER_GETTIMEOFDAY
  return 1e6;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1e6;
#endif
}
Ejemplo n.º 6
0
/* clock resolution */
uint64_t vt_pform_clockres() {
#if TIMER == TIMER_SWITCH_CLOCK
  int i, incr;
  for(i=0; i<NUMRETRY; i++) {
    if ( (incr = swclockGetIncrement(vt_swclk)) != -1 ) return incr;
  }
  return 1;
#elif TIMER == TIMER_POWER_REALTIME
  return 1e9;
#elif TIMER == TIMER_PAPI_REAL_CYC
  return vt_metric_clckrt();
#elif TIMER == TIMER_PAPI_REAL_USEC
  return 1e6;
#endif
}