summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/TimeSnap.h
blob: 0f5d2aea0dc21beebea8d582b27ba52c3d20c823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*  Project nGen
    John DiCamillo
    Copyright © 1997-2002. All Rights Reserved.

    SUBSYSTEM:    nGen.lib
    FILE:         TimeSnap.h
    AUTHOR:       John DiCamillo

*/

#ifndef TimeSnap_h
#define TimeSnap_h

// +--------------------------------------------------------------------+

#define TIMESNAP(clock) _asm push eax\
                        _asm push edx\
                        _asm _emit 0x0F\
                        _asm _emit 0x31\
                        _asm mov clock, eax\
                        _asm pop edx\
                        _asm pop eax

// +--------------------------------------------------------------------+

#endif TimeSnap_h