Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TimeSnap.h
Go to the documentation of this file.
1 /* Project nGen
2  John DiCamillo
3  Copyright © 1997-2002. All Rights Reserved.
4 
5  SUBSYSTEM: nGen.lib
6  FILE: TimeSnap.h
7  AUTHOR: John DiCamillo
8 
9 */
10 
11 #ifndef TimeSnap_h
12 #define TimeSnap_h
13 
14 // +--------------------------------------------------------------------+
15 
16 #define TIMESNAP(clock) _asm push eax\
17  _asm push edx\
18  _asm _emit 0x0F\
19  _asm _emit 0x31\
20  _asm mov clock, eax\
21  _asm pop edx\
22  _asm pop eax
23 
24 // +--------------------------------------------------------------------+
25 
26 #endif TimeSnap_h