File: stats.h

package info (click to toggle)
cubemap 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 380 kB
  • ctags: 398
  • sloc: cpp: 3,895; sh: 114; perl: 86; makefile: 61
file content (21 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _STATS_H
#define _STATS_H 1

#include "thread.h"
#include <string>

// A thread that regularly writes out statistics, ie. a list of all connected clients
// with some information about each.

class StatsThread : public Thread {
public:
	StatsThread(const std::string &stats_file, int stats_interval);

private:
	virtual void do_work();

	std::string stats_file;
	int stats_interval;
};
	
#endif  // !defined(_STATS_H)