You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/webconference/CallStats.h

33 lines
492 B

#ifndef _WCC_CALL_STATS_H
#define _WCC_CALL_STATS_H
#include <string>
using std::string;
class WCCCallStats {
string filename;
unsigned int total;
unsigned int failed;
unsigned int seconds;
int write_cnt;
void save();
void load();
public:
WCCCallStats(const string& stats_dir);
~WCCCallStats();
/** return statistics summary */
string getSummary();
/** add a call - success and connect seconds */
void addCall(bool success, unsigned int connect_t);
};
#endif