/usr/include/libMUSCLE-3.7/libMUSCLE/timing.h is in libmuscle-3.7-dev 3.7+4565-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #if WIN32
#include <intrin.h>
namespace muscle {
typedef unsigned __int64 TICKS;
#pragma warning(disable:4035)
inline TICKS GetClockTicks()
{
// aed 16/7/7: get ticks in a way that's portable to x64
return __rdtsc();
}
#define StartTimer() __int64 t1__ = GetClockTicks()
#define GetElapsedTicks() (GetClockTicks() - t1__)
static double TicksToSecs(TICKS t)
{
return (__int64) t/2.5e9;
}
} // namespace muscle
#endif // WIN32
|