How does Timer work?

I slightly modified the Kaleidoscope example to print the timing data using the NamedRegionTimer as below:

// Run the main “interpreter loop” now.
const char *GroupName = “MainLoop”;
NamedRegionTimer T(“Kaleidoscope”, GroupName, true);

My assumption was that when T goes out of scope, it will emit the data on the command line. But I see nothing.
How does NamedRegionTimer work ?

  • sanjiv


Hi Sanjiv,