4
* Returns the time in seconds used by the process.
6
* Note: the timer function call is machine dependent. Use conditional
7
* compilation to choose the appropriate function.
11
/* We want this flag, safer than putting in build system */
14
double SuperLU_timer_ ();
18
* It uses the system call gethrtime(3C), which is accurate to
23
double SuperLU_timer_() {
24
return ( (double)gethrtime() / 1e9 );
30
#include <sys/types.h>
31
#include <sys/times.h>
39
double SuperLU_timer_(void);
41
double SuperLU_timer_(void)
44
/* no sys/times.h on WIN32 */
54
return (double)(tmp) / CLK_TCK;