3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-19 04:13:38 +00:00
z3/src/util/timeit.h
Nuno Lopes 73a24ca0a9 remove '#include <iostream>' from headers and from unneeded places
It's harmful to have iostream everywhere as it injects functions in the compiled files
2022-06-17 14:10:19 +01:00

34 lines
572 B
C++

/*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
timeit.h
Abstract:
Support for timers.
Author:
Nikolaj Bjorner (nbjorner) 2006-09-22
Revision History:
Leonardo de Moura (leonardo) 2011-04-27
Rewrote using stopwatches, added support for tracking memory
--*/
#pragma once
#include<ostream>
class timeit {
struct imp;
imp * m_imp;
public:
timeit(bool enable, char const * msg, std::ostream * out = nullptr);
timeit(bool enable, char const * msg, std::ostream & out) : timeit(enable, msg, &out) {}
~timeit();
};