lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
MacTimeFix.hh File Reference

On macOS without CLOCK_REALTIME, defines CLOCK_REALTIME and CLOCK_MONOTONIC as 0 and a clock_gettime() that fills the timespec from gettimeofday() (microsecond resolution); on other systems it only includes time.h. More...

#include <time.h>

Detailed Description

On macOS without CLOCK_REALTIME, defines CLOCK_REALTIME and CLOCK_MONOTONIC as 0 and a clock_gettime() that fills the timespec from gettimeofday() (microsecond resolution); on other systems it only includes time.h.