From 8fefc1d995083f0d4a9873f216ccc6e15688d0a9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 5 May 2008 22:42:32 +0000 Subject: Core stats --- src/core/stats.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/core/stats.h (limited to 'src/core/stats.h') diff --git a/src/core/stats.h b/src/core/stats.h new file mode 100644 index 0000000..44153ec --- /dev/null +++ b/src/core/stats.h @@ -0,0 +1,27 @@ +/* + core/stats.h + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#ifndef __INCLUDED_CORE_STATS_H__ +#define __INCLUDED_CORE_STATS_H__ + +/// this namespace contains the network subsystem +namespace core +{ + +/// class to gather various engine statistics +class Stats { +public: + /// clear statistics + static void clear(); + + static unsigned int network_bytes_sent; + static unsigned int network_bytes_received; +}; + +} + +#endif // __INCLUDED_CORE_STATS_H__ + -- cgit v1.2.3