aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/ann/time-util.h
blob: 468cdffca7cd9ce53621327f70c75fe40a8509c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

using TimePoint = std::chrono::steady_clock::time_point;
using Duration = std::chrono::steady_clock::duration;

double to_ms(Duration elapsed) {
    std::chrono::duration<double, std::milli> ms(elapsed);
    return ms.count();
}