Initializes a xtd::diagnostics::stopwatch instance by using a simple class constructor.
#include <xtd/xtd>
auto main() -> int {
auto stopwatch = diagnostics::stopwatch {};
stopwatch.start();
thread::sleep(10000_ms);
stopwatch.stop();
auto ts = stopwatch.elapsed();
auto elapsed_time = string::format("{0:H}:{0:M}:{0:S}.{1:D2}", ts, ts.milliseconds() / 10);
console::write_line("RunTime " + elapsed_time);
}