mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context: Eliminated gc timer
This commit is contained in:
parent
c7cb2f26ff
commit
89b8c9f198
3 changed files with 5 additions and 5 deletions
|
@ -1253,7 +1253,7 @@ void TDB2::show_diff (
|
|||
// - waiting task in pending that needs to be un-waited
|
||||
void TDB2::gc ()
|
||||
{
|
||||
context.timer_gc.start ();
|
||||
Timer timer;
|
||||
|
||||
// Allowed as an override, but not recommended.
|
||||
if (context.config.getBoolean ("gc"))
|
||||
|
@ -1290,7 +1290,7 @@ void TDB2::gc ()
|
|||
completed.dependency_scan ();
|
||||
}
|
||||
|
||||
context.timer_gc.stop ();
|
||||
context.time_gc_us += timer.total_us ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue