Config: Migrated to libshared Timer

This commit is contained in:
Paul Beckingham 2016-11-13 13:06:48 -05:00
parent 302b5a5589
commit f5d46a34aa

View file

@ -408,7 +408,7 @@ Config::Config ()
// //
void Config::load (const std::string& file, int nest /* = 1 */) void Config::load (const std::string& file, int nest /* = 1 */)
{ {
Timer timer ("Config::load (" + file + ")"); Timer timer;
if (nest > 10) if (nest > 10)
throw std::string (STRING_CONFIG_OVERNEST); throw std::string (STRING_CONFIG_OVERNEST);
@ -425,7 +425,7 @@ void Config::load (const std::string& file, int nest /* = 1 */)
if (File::read (file, contents) && contents.length ()) if (File::read (file, contents) && contents.length ())
parse (contents, nest); parse (contents, nest);
context.debug (timer.str ()); context.debugTiming (format ("Config::load ({1})", file), timer);
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////