Return a std::chrono::steady_clock::duration and switch the caller in migration manager to also use proper C++ durations. Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com> Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
17 lines
219 B
C++
17 lines
219 B
C++
/*
|
|
* Copyright (C) 2015 Cloudius Systems, Ltd.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
namespace runtime {
|
|
|
|
void init_uptime();
|
|
|
|
/// Returns the uptime of the system.
|
|
std::chrono::steady_clock::duration get_uptime();
|
|
|
|
}
|