1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 12:53:51 +00:00

Track CPU usage also on cygwin.

This commit is contained in:
Bartosz Taudul 2019-02-21 23:11:09 +01:00
parent d0c1b9bf67
commit 0b9fa8f3c8
2 changed files with 4 additions and 4 deletions

View File

@ -2,14 +2,14 @@
#ifdef TRACY_HAS_SYSTIME #ifdef TRACY_HAS_SYSTIME
# ifdef _WIN32 # if defined _WIN32 || defined __CYGWIN__
# include <windows.h> # include <windows.h>
# endif # endif
namespace tracy namespace tracy
{ {
# ifdef _WIN32 # if defined _WIN32 || defined __CYGWIN__
static inline uint64_t ConvertTime( const FILETIME& t ) static inline uint64_t ConvertTime( const FILETIME& t )
{ {

View File

@ -1,7 +1,7 @@
#ifndef __TRACYSYSTIME_HPP__ #ifndef __TRACYSYSTIME_HPP__
#define __TRACYSYSTIME_HPP__ #define __TRACYSYSTIME_HPP__
#ifdef _WIN32 #if defined _WIN32 || defined __CYGWIN__
# define TRACY_HAS_SYSTIME # define TRACY_HAS_SYSTIME
#endif #endif
@ -19,7 +19,7 @@ public:
float Get(); float Get();
private: private:
# ifdef _WIN32 # if defined _WIN32 || defined __CYGWIN__
uint64_t idle, used; uint64_t idle, used;
# endif # endif
}; };