Context: Eliminated sort timer

This commit is contained in:
Paul Beckingham 2016-11-13 13:33:55 -05:00
parent ff36a87551
commit ae128f587d
3 changed files with 5 additions and 5 deletions

View file

@ -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 ();
}
////////////////////////////////////////////////////////////////////////////////