mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Context: Eliminated sort timer
This commit is contained in:
parent
ff36a87551
commit
ae128f587d
3 changed files with 5 additions and 5 deletions
|
@ -47,7 +47,7 @@ void sort_tasks (
|
|||
std::vector <int>& order,
|
||||
const std::string& keys)
|
||||
{
|
||||
context.timer_sort.start ();
|
||||
Timer timer;
|
||||
|
||||
global_data = &data;
|
||||
|
||||
|
@ -59,7 +59,7 @@ void sort_tasks (
|
|||
if (order.size ())
|
||||
std::stable_sort (order.begin (), order.end (), sort_compare);
|
||||
|
||||
context.timer_sort.stop ();
|
||||
context.time_sort_us += timer.total_us ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue