mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Track CPU usage also on cygwin.
This commit is contained in:
parent
d0c1b9bf67
commit
0b9fa8f3c8
@ -2,14 +2,14 @@
|
||||
|
||||
#ifdef TRACY_HAS_SYSTIME
|
||||
|
||||
# ifdef _WIN32
|
||||
# if defined _WIN32 || defined __CYGWIN__
|
||||
# include <windows.h>
|
||||
# endif
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
# ifdef _WIN32
|
||||
# if defined _WIN32 || defined __CYGWIN__
|
||||
|
||||
static inline uint64_t ConvertTime( const FILETIME& t )
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifndef __TRACYSYSTIME_HPP__
|
||||
#define __TRACYSYSTIME_HPP__
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
# define TRACY_HAS_SYSTIME
|
||||
#endif
|
||||
|
||||
@ -19,7 +19,7 @@ public:
|
||||
float Get();
|
||||
|
||||
private:
|
||||
# ifdef _WIN32
|
||||
# if defined _WIN32 || defined __CYGWIN__
|
||||
uint64_t idle, used;
|
||||
# endif
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user