You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
557 B
C
31 lines
557 B
C
#pragma once
|
|
#ifndef MANGOHUD_IOSTATS_H
|
|
#define MANGOHUD_IOSTATS_H
|
|
|
|
#include <inttypes.h>
|
|
#include "timing.hpp"
|
|
|
|
struct iostats {
|
|
struct {
|
|
unsigned long long read_bytes;
|
|
unsigned long long write_bytes;
|
|
} curr;
|
|
struct {
|
|
unsigned long long read_bytes;
|
|
unsigned long long write_bytes;
|
|
} prev;
|
|
struct {
|
|
float read;
|
|
float write;
|
|
} diff;
|
|
struct {
|
|
float read;
|
|
float write;
|
|
} per_second;
|
|
Clock::time_point last_update;
|
|
};
|
|
|
|
void getIoStats(void *args);
|
|
|
|
#endif //MANGOHUD_IOSTATS_H
|