From 8f3fe09b4a0b8bd014fc058f474f08834b94821b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 7 Mar 2022 15:18:00 +0100 Subject: time_accounts_init: Add a warning if timer is not available --- libcrystfel/src/time-accounts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/time-accounts.c b/libcrystfel/src/time-accounts.c index 773debeb..197e2d27 100644 --- a/libcrystfel/src/time-accounts.c +++ b/libcrystfel/src/time-accounts.c @@ -62,6 +62,10 @@ TimeAccounts *time_accounts_init() accs->n_accs = 0; accs->cur_acc = TACC_NOTHING; +#ifndef HAVE_CLOCK_GETTIME + printf("Profiling disabled because clock_gettime is not available\n"); +#endif + return accs; } -- cgit v1.2.3