mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
fix VS build, take 2
This commit is contained in:
parent
3d7878bafc
commit
6598aedbb2
3 changed files with 10 additions and 5 deletions
|
@ -27,6 +27,9 @@ Revision History:
|
|||
#include "util/trace.h"
|
||||
#include "util/max_cliques.h"
|
||||
#include "util/gparams.h"
|
||||
#ifdef _MSC_VER
|
||||
# include <xmmintrin.h>
|
||||
#endif
|
||||
|
||||
// define to update glue during propagation
|
||||
#define UPDATE_GLUE
|
||||
|
|
|
@ -56,7 +56,6 @@ z3_add_component(util
|
|||
symbol.cpp
|
||||
timeit.cpp
|
||||
timeout.cpp
|
||||
timer.cpp
|
||||
trace.cpp
|
||||
util.cpp
|
||||
warning.cpp
|
||||
|
|
|
@ -25,14 +25,17 @@ Revision History:
|
|||
|
||||
class stopwatch
|
||||
{
|
||||
std::chrono::time_point<std::chrono::steady_clock> m_start;
|
||||
std::chrono::steady_clock::duration m_elapsed;
|
||||
typedef decltype(std::chrono::steady_clock::now()) clock_t;
|
||||
typedef decltype(std::chrono::steady_clock::now() - std::chrono::steady_clock::now()) duration_t;
|
||||
|
||||
clock_t m_start;
|
||||
duration_t m_elapsed;
|
||||
#if Z3DEBUG
|
||||
bool m_running = false;
|
||||
#endif
|
||||
|
||||
// FIXME: just use auto with VS 2015+
|
||||
static decltype(std::chrono::steady_clock::now()) get() {
|
||||
static clock_t get() {
|
||||
return std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
|
@ -46,7 +49,7 @@ public:
|
|||
}
|
||||
|
||||
void reset() {
|
||||
m_elapsed = std::chrono::steady_clock::duration::zero();
|
||||
m_elapsed = duration_t::zero();
|
||||
}
|
||||
|
||||
void start() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue