slang::TimeTraceScope class

A helper class that calls begin and end of the time trace profiler.

When the object is constructed, it begins the trace section and when it is destroyed, it stops it. If the time profiler is not initialized the overhead is a single branch.