File: stats.h

package info (click to toggle)
cubemap 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 428 kB
  • sloc: cpp: 4,431; sh: 114; perl: 102; makefile: 60
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)