mudgangster

Tiny, scriptable MUD client
Log | Files | Refs | README

TracySysTime.hpp (457B)


      1 #ifndef __TRACYSYSTIME_HPP__
      2 #define __TRACYSYSTIME_HPP__
      3 
      4 #if defined _WIN32 || defined __CYGWIN__ || defined __linux__ || defined __APPLE__
      5 #  define TRACY_HAS_SYSTIME
      6 #else
      7 #  include <sys/param.h>
      8 #endif
      9 
     10 #ifdef BSD
     11 #  define TRACY_HAS_SYSTIME
     12 #endif
     13 
     14 #ifdef TRACY_HAS_SYSTIME
     15 
     16 #include <stdint.h>
     17 
     18 namespace tracy
     19 {
     20 
     21 class SysTime
     22 {
     23 public:
     24     SysTime();
     25     float Get();
     26 
     27     void ReadTimes();
     28 
     29 private:
     30     uint64_t idle, used;
     31 };
     32 
     33 }
     34 #endif
     35 
     36 #endif