3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-16 05:48:44 +00:00
z3/src/util/stats.h
Nikolaj Bjorner 4bc044c982 update header guards to be C++ style. Fixes issue #9
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
2015-07-08 23:18:40 -07:00

38 lines
530 B
C++

/*++
Copyright (c) 2009 Microsoft Corporation
Module Name:
stats.h
Abstract:
Shared utilities for displaying statistics.
Author:
nbjorner 2009-12-6
Revision History:
--*/
#ifndef STATS_H_
#define STATS_H_
#include<ostream>
inline void print_stat(std::ostream& out, char const* msg, unsigned num) {
if (num > 0) {
out << msg << num << "\n";
}
}
inline void print_stat_f(std::ostream& out, char const* msg, float num) {
if (num > 0.0) {
out << msg << num << "\n";
}
}
#endif