Fission FSN
Loading...
Searching...
No Matches
fsProfile.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 20/2/2014 15:33
4*
5* File: fsProfile.h
6*
7* Author: Mick Waites
8*
9* Purpose: Win 32 implementation of fsProfile
10*
11*********************************************************************/
12
13#ifndef fsProfileMLhdr
14#define fsProfileMLhdr
15
16#include <s3eTimer.h>
17#include "../../../debug/fsLog.h"
19
20
21#define fsProfileStart( pName ) \
22 fsS64 startMs##pName = s3eTimerGetMs();
23
24#define fsProfileEnd( pName ) \
25 fsS64 elapsedMs##pName = s3eTimerGetMs() - startMs##pName; \
26 fsLogMsg( "PROFILE( " #pName " ) %d ms.\n", elapsedMs##pName );
27
28#endif