mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
9e9f90343b
commit
bc94816184
3 changed files with 14 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue