From f5d46a34aa6b685c34f691c51c0135885cac4a7c Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 13 Nov 2016 13:06:48 -0500 Subject: [PATCH] Config: Migrated to libshared Timer --- src/Config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config.cpp b/src/Config.cpp index 46993dbc1..be606f8bb 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -408,7 +408,7 @@ Config::Config () // void Config::load (const std::string& file, int nest /* = 1 */) { - Timer timer ("Config::load (" + file + ")"); + Timer timer; if (nest > 10) 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 ()) parse (contents, nest); - context.debug (timer.str ()); + context.debugTiming (format ("Config::load ({1})", file), timer); } ////////////////////////////////////////////////////////////////////////////////