3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-11 17:54:43 +00:00
z3/src/util/stats.h
Leonardo de Moura 2c464d413d Reorganizing source code. Created util dir
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2012-10-20 10:19:38 -07:00

37 lines
534 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