Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/Debugging/Stopwatch2.h File Reference

stopwatch macros More...

#include "Tools/Debugging/Debugging.h"
#include "Platform/SystemCall.h"
#include "Platform/GTAssert.h"

Include dependency graph for Stopwatch2.h:

Include dependency graph

Go to the source code of this file.

Classes

class  Stopwatch
 Provides IDs and names for different stopwatch tasks; makros are used to provide real stopwatch functionality with that. More...


Defines

#define STOP_TIME_ON_REQUEST(eventID, expression)
#define STOP_TIME(expression)
#define NSTOP_TIME_ON_REQUEST(eventID, expression)


Detailed Description

stopwatch macros

Author:
Matthias Jüngel

Definition in file Stopwatch2.h.


Define Documentation

#define STOP_TIME_ON_REQUEST eventID,
expression   ) 
 

Definition at line 30 of file Stopwatch2.h.

#define STOP_TIME expression   ) 
 

Definition at line 31 of file Stopwatch2.h.

#define NSTOP_TIME_ON_REQUEST eventID,
expression   ) 
 

Value:

DEBUG_RESPONSE("stopwatch:" #eventID, \
  unsigned long eventID##StartTimeN; \
  static unsigned long eventID##Counter = 0; \
  eventID##StartTimeN = SystemCall::getCurrentSystemTime();\
  expression \
  OUTPUT(idStopwatch, bin, #eventID << eventID##StartTimeN << SystemCall::getCurrentSystemTime() << eventID##Counter++) \
  ); \
  DEBUG_RESPONSE_NOT("stopwatch:" #eventID, expression );

Definition at line 40 of file Stopwatch2.h.


Generated on Mon Mar 20 22:07:27 2006 for GT2005 by doxygen 1.3.6