Add the Monitored::ScopedTimer helper class that provides RAII-style time measurements. Update and fix the unit test.
Monitored::ScopedTimer