aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-03-07 15:18:00 +0100
committerThomas White <taw@physics.org>2022-03-07 16:05:11 +0100
commit8f3fe09b4a0b8bd014fc058f474f08834b94821b (patch)
treea77f8ed20e8f308797f33d4b67f29080e46d2638 /libcrystfel
parentaa6ac7378542a1fe3ab6924b63c3ec9c1155dc2c (diff)
time_accounts_init: Add a warning if timer is not available
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/time-accounts.c4
1 files changed, 4 insertions, 0 deletions
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;
}