blob: daf689e74f42ea059aededc3c626db4cab8624fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//
// Copyright © 2020 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <chrono>
#include <iomanip>
namespace armnn
{
inline std::chrono::high_resolution_clock::time_point GetTimeNow()
{
return std::chrono::high_resolution_clock::now();
}
inline std::chrono::duration<double, std::milli> GetTimeDuration(
std::chrono::high_resolution_clock::time_point start_time)
{
return std::chrono::duration<double, std::milli>(GetTimeNow() - start_time);
}
}
|