Skip to content
Snippets Groups Projects
Select Git revision
  • dc0056086dae50571fa2bef952de6bd4abb9817f
  • master default protected
  • explicit
3 results

ftimer.h

Blame
  • ftimer.h 401 B
    /* 
     * Function timers 
     */
    typedef void (*ftimer_test_funct)(void *); 
    
    /* Estimate the running time of f(argp) using the Unix interval timer.
       Return the average of n runs */
    double ftimer_itimer(ftimer_test_funct f, void *argp, int n);
    
    
    /* Estimate the running time of f(argp) using gettimeofday 
       Return the average of n runs */
    double ftimer_gettod(ftimer_test_funct f, void *argp, int n);