Shows how to use xtd::diagnostics::console_trace_listener class.
#define DEBUG
#include <xtd/diagnostics/debug>
#include <xtd/diagnostics/console_trace_listener>
#include <xtd/threading/thread>
#include <memory>
auto main() -> int {
for (auto step = 1; step <= 10; step++) {
}
}
static void indent() noexcept
Increases the current indent_level by one.
static void write_line()
Writes a line terminator to the trace listeners in the listeners collection.
Definition debug.hpp:361
static listener_collection & listeners() noexcept
Gets the collection of listeners that is monitoring the trace output.
static void unindent() noexcept
Decreases the current indent_level by one.
static void sleep(int32 milliseconds_timeout)
Suspends the current thread for a specified time.
ptr< type_t > new_ptr(args_t &&... args)
The xtd::new_ptr operator creates a xtd::ptr object.
Definition new_ptr.hpp:24
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8