Changeset 12627 in vbox for trunk/src/VBox/Frontends/VirtualBox4
- Timestamp:
- Sep 22, 2008 8:58:39 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 36903
- Location:
- trunk/src/VBox/Frontends/VirtualBox4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.