3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 19:47:52 +00:00

Add support for NetBSD

Originally from David Holland <dholland@NetBSD.org>.
This commit is contained in:
Pierre Pronchery 2018-03-13 21:37:22 +01:00
parent 5651d00751
commit 5f7bd993de
4 changed files with 33 additions and 10 deletions

View file

@ -134,6 +134,11 @@ public:
#include<ctime>
#ifndef CLOCK_PROCESS_CPUTIME_ID
/* BSD */
# define CLOCK_PROCESS_CPUTIME_ID CLOCK_MONOTONIC
#endif
class stopwatch {
unsigned long long m_time; // elapsed time in ns
bool m_running;