The functionality is similar to RuntimeMBean.getUptime() that's needed in schema pulling logic. Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
17 lines
208 B
C++
17 lines
208 B
C++
/*
|
|
* Copyright (C) 2015 Cloudius Systems, Ltd.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
namespace runtime {
|
|
|
|
void init_uptime();
|
|
|
|
/// Returns the uptime of the system in milliseconds.
|
|
uint64_t get_uptime();
|
|
|
|
}
|