1
0
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:
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 _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 )
{

View File

@ -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
};