1 #include <../../nrnconf.h>
4 #if defined(HAVE_GETTIMEOFDAY)
22 #if defined(HAVE_GETTIMEOFDAY)
25 gettimeofday(&x, (
struct timezone*) 0);
26 ms10 = x.tv_usec / 10000;
27 start_time = (100. * (double) (x.tv_sec) + (double) ms10) / 100.;
40 #if defined(HAVE_GETTIMEOFDAY)
44 gettimeofday(&x, (
struct timezone*) 0);
45 ms10 = x.tv_usec / 10000;
46 y = (double) (x.tv_sec) + (double) ms10 / 100.;
51 Printf(
"Must use startsw() first.\n");
62 #if defined(HAVE_GETTIMEOFDAY)
64 gettimeofday(&x, (
struct timezone*) 0);
65 return ((
double) x.tv_sec + .000001 * ((
double) x.tv_usec));