diff --git a/src/io.c b/src/io.c index bf25e55b5b8c80fd48eaddf3c42590e00428b03d..a229e028e80dce199bafe9ed2b415a37218650ea 100644 --- a/src/io.c +++ b/src/io.c @@ -32,6 +32,7 @@ #include <hdf5.h> #include <math.h> +#include "cycle.h" #include "lock.h" #include "task.h" #include "part.h" diff --git a/src/runner.c b/src/runner.c index 720270e35a9ad88fc946183bc2aa8602dcdbe8ed..fe17aa68473cd560672047db772636f4f32c7816 100644 --- a/src/runner.c +++ b/src/runner.c @@ -725,7 +725,7 @@ void *runner_main ( void *data ) { t->rid = r->id; /* Different types of tasks... */ - t->tic = gettics(); + t->tic = getticks(); switch ( t->type ) { case task_type_self: if ( t->subtype == task_subtype_density ) @@ -771,7 +771,7 @@ void *runner_main ( void *data ) { default: error( "Unknown task type." ); } - t->toc = gettics(); + t->toc = getticks(); /* Resolve any dependencies. */ for ( k = 0 ; k < t->nr_unlock_tasks ; k++ )