JDFTx  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StopWatch Class Reference

#include <Util.h>

Public Member Functions

 StopWatch (string name)
 
void start ()
 
void stop ()
 

Detailed Description

Quick drop-in profiler for any function. Usage:

  • Create a static object of this class in the function
  • Call start and stop before and after the section to be timed
  • Timing statistics of the code block will be printed on exit

The documentation for this class was generated from the following file: