portico/Benchmarks/Sources/CBenchSupport/include/CBenchSupport.h

13 lines
No EOL
290 B
C

#ifndef C_BENCH_SUPPORT_H
#define C_BENCH_SUPPORT_H
#include <stdint.h>
/// Resident set size in kilobytes, read from /proc/self/statm on Linux.
/// Returns 0 when unavailable.
uint64_t bench_rss_kb(void);
/// Monotonic nanoseconds (CLOCK_MONOTONIC).
uint64_t bench_now_ns(void);
#endif