xtd
0.2.0
Loading...
Searching...
No Matches
environment_tick_count.cpp
Shows how to use
xtd::environment::tick_count
method.
#include <xtd/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
Generated on Sun Aug 31 2025 20:45:29 for xtd by
Gammasoft
. All rights reserved.