diff options
author | Thomas White <taw@physics.org> | 2022-03-07 15:18:00 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2022-03-07 16:05:11 +0100 |
commit | 8f3fe09b4a0b8bd014fc058f474f08834b94821b (patch) | |
tree | a77f8ed20e8f308797f33d4b67f29080e46d2638 /libcrystfel/src/time-accounts.c | |
parent | aa6ac7378542a1fe3ab6924b63c3ec9c1155dc2c (diff) |
time_accounts_init: Add a warning if timer is not available
Diffstat (limited to 'libcrystfel/src/time-accounts.c')
-rw-r--r-- | libcrystfel/src/time-accounts.c | 4 |
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; } |