5#include <system/object.h>
6#include <system/timespan.h>
9#ifdef ASPOSECPPLIB_BEING_BUILT
10#include <boost/chrono.hpp>
14namespace System {
namespace Diagnostics
18 ASPOSECPP_3RD_PARTY_TYPE_HOLDER_HIDDEN_TYPE(boost::chrono::high_resolution_clock::time_point, time_point,
sizeof(
long long),
long long, TimePointHolder);
42 ASPOSECPP_SHARED_API
void Start();
44 ASPOSECPP_SHARED_API
void Stop();
46 ASPOSECPP_SHARED_API
void Reset();
70 Detail::TimePointHolder m_start;
Allows time measurement. Objects of this class should only be allocated using System::MakeObject() fu...
Definition: stopwatch.h:31
int64_t get_ElapsedMilliseconds() const
Gets the total elapsed time measured by the current instance, in milliseconds.
Definition: stopwatch.h:57
void Start()
Starts time measurement.
static SharedPtr< Stopwatch > StartNew()
Creates new Stopwatch object and starts measurement.
bool get_IsRunning() const
Checks if stopwatch is running.
Definition: stopwatch.h:51
TimeSpan get_Elapsed() const
Gets the total elapsed time measured by the current instance.
void Stop()
Stops time measurement.
int64_t get_ElapsedTicks() const
Gets the total elapsed time measured by the current instance, in timer ticks.
Definition: stopwatch.h:60
Stopwatch()
RTTI information.
void Restart()
Sets measured interval to zero, then starts time measurement.
virtual ~Stopwatch()
Destructor.
void Reset()
Stops time measurement, sets measured interval to zero.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents a time interval. This type should be allocated on stack and passed to functions by value o...
Definition: timespan.h:59
static constexpr int64_t TicksPerMillisecond
The number of 100-nanoseconds intervals in a millisecond.
Definition: timespan.h:73
SharedPtr< Stopwatch > StopwatchPtr
Pointer type.
Definition: stopwatch.h:24
Definition: db_command.h:9