summaryrefslogtreecommitdiffhomepage
path: root/nGenEx/TimeSnap.h
blob: b7bacb90d2409a8ba85c9af3eebb5edf52196b8d (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