mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
24 lines
400 B
C++
24 lines
400 B
C++
/*
|
|
* TimerWithComm.h
|
|
*
|
|
*/
|
|
|
|
#ifndef TOOLS_TIMERWITHCOMM_H_
|
|
#define TOOLS_TIMERWITHCOMM_H_
|
|
|
|
#include "time-func.h"
|
|
#include "Networking/Player.h"
|
|
|
|
class TimerWithComm : public Timer
|
|
{
|
|
NamedCommStats total_stats, last_stats;
|
|
|
|
public:
|
|
void start(const NamedCommStats& stats = {});
|
|
void stop(const NamedCommStats& stats = {});
|
|
|
|
double mb_sent();
|
|
};
|
|
|
|
#endif /* TOOLS_TIMERWITHCOMM_H_ */
|