Files
scylladb/utils/runtime.hh
Pekka Enberg 55858137e0 utils: Clean up runtime::get_uptime() API
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>
2015-07-22 14:56:52 +03:00

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