ovni/src/emu/emu_stat.h
Rodrigo Arias ddbb7dd9f4 Add include-what-you-use
Adds forwards declarations in headers and includes all headers in
sources, even if they are found by transitive includes.
2023-03-24 12:08:45 +00:00

28 lines
638 B
C

/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef EMU_STAT_H
#define EMU_STAT_H
#include <stdint.h>
struct player;
/* Easier to parse emulation event */
struct emu_stat {
double in_progress;
double period;
double last_time;
double reported_time;
double first_time;
int64_t last_nprocessed;
int64_t ncalls;
int64_t maxcalls;
int average;
};
void emu_stat_init(struct emu_stat *stat);
void emu_stat_update(struct emu_stat *stat, struct player *player);
void emu_stat_report(struct emu_stat *stat, struct player *player, int last);
#endif /* EMU_STAT_H */