xtd 0.2.0
Loading...
Searching...
No Matches
environment_tick_count.cpp

Shows how to use xtd::environment::tick_count method.

#include <xtd/console>
#include <xtd/environment>
using namespace xtd;
auto main() -> int {
auto time_since_boot = environment::tick_count();
console::write_line("Time since boot : {0:d} days {0:h}:{0:M}", time_since_boot);
}
// This code can be produce the following output :
//
// Time since boot : 8 days 18:20
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10