Ideally, this can just be wrapped around any block of statements (using using) and on construction/destruction it will automatically log how much time the block took.
Only one parameter needs to be passed, some kind of naming string: e.g. "loading data", which will get automatically transformed into "Started loading data..." and "Finished loading data: ### msec".
Ideally, this can just be wrapped around any block of statements (using
using
) and on construction/destruction it will automatically log how much time the block took.Only one parameter needs to be passed, some kind of naming string: e.g.
"loading data"
, which will get automatically transformed into"Started loading data..."
and"Finished loading data: ### msec"
.