Performance

- Removed Context::timer_sync, as it makes no sense now that sync is not an
  automatic operation like gc.
This commit is contained in:
Paul Beckingham 2013-04-02 23:45:34 -04:00
parent 9e9f90343b
commit bc94816184
3 changed files with 14 additions and 5 deletions

View file

@ -53,7 +53,8 @@ CmdSync::CmdSync ()
int CmdSync::execute (std::string& output)
{
int status = 0;
context.timer_sync.start ();
Timer timer_sync;
timer_sync.start ();
std::stringstream out;
@ -233,7 +234,18 @@ int CmdSync::execute (std::string& output)
out << "\n";
output = out.str ();
context.timer_sync.stop ();
/*
timer_sync.stop ();
std::stringstream s;
s << "Sync "
<< Date ().toISO ()
<< " sync:"
<< timer_sync.total ()
<< "\n";
debug (s.str ());
*/
return status;
}