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
27
28
29
30
31
32
33
34
35
36
37
38
/*++
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();')
*/