JDFTx  1.7.0
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: