Defines common cross-platform macros, export decorators, and fundamental types.
Base object class for DotNetDupe mirroring .NET System.Object.
Supports all classes in the DotNetDupe class hierarchy.
static constexpr int64_t TicksPerHour
The number of ticks in 1 hour.
double GetTotalMinutes() const
Gets the value of the current TimeSpan expressed in whole and fractional minutes.
static TimeSpan FromSeconds(double value)
Returns a TimeSpan that represents a specified number of seconds.
static TimeSpan FromDays(double value)
Returns a TimeSpan that represents a specified number of days.
bool operator<(const TimeSpan &other) const
Indicates whether a specified TimeSpan is less than another specified TimeSpan.
bool operator>=(const TimeSpan &other) const
Indicates whether a specified TimeSpan is greater than or equal to another specified TimeSpan.
static constexpr int64_t TicksPerSecond
The number of ticks in 1 second.
bool operator!=(const TimeSpan &other) const
Indicates whether two TimeSpan instances are not equal.
bool operator<=(const TimeSpan &other) const
Indicates whether a specified TimeSpan is less than or equal to another specified TimeSpan.
static TimeSpan FromMilliseconds(double value)
Returns a TimeSpan that represents a specified number of milliseconds.
double GetTotalSeconds() const
Gets the value of the current TimeSpan expressed in whole and fractional seconds.
TimeSpan(int64_t ticks)
Initializes a new instance of TimeSpan to the specified number of ticks.
static TimeSpan FromTicks(int64_t ticks)
Returns a TimeSpan that represents a specified number of ticks.
TimeSpan operator+(const TimeSpan &other) const
Adds a specified TimeSpan to this instance.
bool operator==(const TimeSpan &other) const
Indicates whether two TimeSpan instances are equal.
bool operator>(const TimeSpan &other) const
Indicates whether a specified TimeSpan is greater than another specified TimeSpan.
TimeSpan()
Initializes a new instance of TimeSpan to zero duration.
static constexpr int64_t TicksPerDay
The number of ticks in 1 day.
static constexpr int64_t TicksPerMillisecond
The number of ticks in 1 millisecond.
double GetTotalDays() const
Gets the value of the current TimeSpan expressed in whole and fractional days.
static TimeSpan FromMinutes(double value)
Returns a TimeSpan that represents a specified number of minutes.
static TimeSpan FromHours(double value)
Returns a TimeSpan that represents a specified number of hours.
TimeSpan operator-(const TimeSpan &other) const
Subtracts a specified TimeSpan from this instance.
double GetTotalHours() const
Gets the value of the current TimeSpan expressed in whole and fractional hours.
double GetTotalMilliseconds() const
Gets the value of the current TimeSpan expressed in whole and fractional milliseconds.
static constexpr int64_t TicksPerMinute
The number of ticks in 1 minute.
int64_t GetTicks() const
Gets the number of ticks that represent the value of the current TimeSpan structure.