Badminton-Scoreboard/Libraries/libil2cpp/include/os/CpuInfo.h

26 lines
565 B
C
Raw Normal View History

2023-10-08 02:24:48 +00:00
#pragma once
#include <stdint.h>
namespace il2cpp
{
namespace os
{
class CpuInfo
{
public:
static void* Create();
/*
* This function returns the cpu usage in percentage,
* normalized on the number of cores.
*
* Warning : the percentage returned can be > 100%. This
* might happens on systems like Android which, for
* battery and performance reasons, shut down cores and
* lie about the number of active cores.
*/
static int32_t Usage(void* previous);
};
}
}