5#include <xtd/event_args>
6#include <xtd/time_span>
35 time_span elapsed()
const {
return time_span {std::chrono::duration_cast<xtd::ticks>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count()};}
38 int64 elapsed_milliseconds()
const {
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::nanoseconds {elapsed_nanoseconds_}).count();}
49 int32 frame_counter_ = 0;
50 int64 elapsed_nanoseconds_ {0};
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Represents a time interval.
Definition time_span.hpp:29