Changeset 12627 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Sep 22, 2008 8:58:39 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxDefs.h
r8219 r12627 29 29 #include <VBox/log.h> 30 30 #include <iprt/assert.h> 31 32 31 #include <iprt/alloc.h> 33 #include <iprt/asm.h>34 32 35 33 #ifdef VBOX_GUI_DEBUG … … 78 76 { 79 77 public: 80 inline static uint64_t ticks() { 81 return ASMReadTSC(); 82 } 78 static uint64_t ticks(); 83 79 inline static uint64_t msecs( uint64_t tcks ) { 84 80 return tcks / ticks_per_msec; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r11955 r12627 89 89 #if defined (VBOX_GUI_DEBUG) 90 90 uint64_t VMCPUTimer::ticks_per_msec = (uint64_t) -1LL; // declared in VBoxDefs.h 91 /* don't make this function inline to not depend on iprt/asm.h in VBoxDefs.h */ 92 uint64_t VMCPUTimer::ticks() 93 { 94 return ASMReadTSC(); 95 } 91 96 #endif 92 97 -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDefs.h
r12286 r12627 29 29 #include <VBox/log.h> 30 30 #include <iprt/assert.h> 31 32 31 #include <iprt/alloc.h> 33 #include <iprt/asm.h>34 32 35 33 #ifdef VBOX_GUI_DEBUG … … 78 76 { 79 77 public: 80 inline static uint64_t ticks() { 81 return ASMReadTSC(); 82 } 78 /* don't inline this function to not depend on iprt/asm.h here */ 79 static uint64_t ticks(); 83 80 inline static uint64_t msecs( uint64_t tcks ) { 84 81 return tcks / ticks_per_msec; -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r12553 r12627 103 103 #if defined (VBOX_GUI_DEBUG) 104 104 uint64_t VMCPUTimer::ticks_per_msec = (uint64_t) -1LL; // declared in VBoxDefs.h 105 uint64_t VMCPUTimer::ticks() 106 { 107 return ASMReadTSC(); 108 } 105 109 #endif 106 110
Note:
See TracChangeset
for help on using the changeset viewer.