summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pumi/phiotimer.cc.darwin.patch
blob: 52c6e63fcabf180142666be5a9ffefe87488ced7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*** ./phasta/phiotimer.cc	2017-05-03 12:26:25.000000000 -0700
--- ./phasta/phiotimer.cc.patched	2017-05-03 12:26:11.000000000 -0700
***************
*** 56,63 ****
  }
  #else
  void phastaio_time(phastaioTime* t) {
!   int err;
!   err = clock_gettime(CLOCK_MONOTONIC,t);
    PCU_ALWAYS_ASSERT(!err);
  }
  /*return elapsed time in micro seconds*/
--- 56,63 ----
  }
  #else
  void phastaio_time(phastaioTime* t) {
!   int err=0;
!   /*err = clock_gettime(CLOCK_MONOTONIC,t);*/
    PCU_ALWAYS_ASSERT(!err);
  }
  /*return elapsed time in micro seconds*/