mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Config: Migrated to libshared Timer
This commit is contained in:
parent
302b5a5589
commit
f5d46a34aa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue