3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 13:58:45 +00:00
z3/src/util/scoped_timer.h
2022-06-22 10:50:19 +01:00

39 lines
582 B
C++

/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
scoped_timer.h
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2011-04-26.
Revision History:
--*/
#pragma once
#include "util/event_handler.h"
struct scoped_timer_state;
class scoped_timer {
scoped_timer_state *s = nullptr;
public:
scoped_timer(unsigned ms, event_handler * eh);
~scoped_timer();
static void initialize();
static void finalize();
private:
void init_state(unsigned ms, event_handler * eh);
};
/*
ADD_INITIALIZER('scoped_timer::initialize();')
*/