1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

CPU usage retrieval.

This commit is contained in:
Bartosz Taudul
2019-02-21 21:59:02 +01:00
parent c8fb3f24cc
commit 9f4f5bcb63
6 changed files with 130 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef __TRACYSYSTIME_HPP__
#define __TRACYSYSTIME_HPP__
#ifdef _WIN32
# define TRACY_HAS_SYSTIME
#endif
#ifdef TRACY_HAS_SYSTIME
#include <stdint.h>
namespace tracy
{
class SysTime
{
public:
SysTime();
float Get();
private:
# ifdef _WIN32
uint64_t idle, used;
# endif
};
}
#endif
#endif