AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Duration.h File Reference
#include <chrono>

Go to the source code of this file.

Typedefs

using Microseconds = std::chrono::microseconds
 Microseconds shorthand typedef.
 
using Milliseconds = std::chrono::milliseconds
 Milliseconds shorthand typedef.
 
using Seconds = std::chrono::seconds
 Seconds shorthand typedef.
 
using Minutes = std::chrono::minutes
 Minutes shorthand typedef.
 
using Hours = std::chrono::hours
 Hours shorthand typedef.
 
using Days = std::chrono::days
 Days shorthand typedef.
 
using Weeks = std::chrono::weeks
 Weeks shorthand typedef.
 
using Years = std::chrono::years
 Years shorthand typedef.
 
using Months = std::chrono::months
 Months shorthand typedef.
 
using TimePoint = std::chrono::steady_clock::time_point
 time_point shorthand typedefs
 
using SystemTimePoint = std::chrono::system_clock::time_point
 

Functions

constexpr Days operator""_days (unsigned long long days)
 
constexpr Weeks operator""_weeks (unsigned long long weeks)
 
constexpr Years operator""_years (unsigned long long years)
 
constexpr Months operator""_months (unsigned long long months)
 

Typedef Documentation

◆ Days

using Days = std::chrono::days

Days shorthand typedef.

◆ Hours

using Hours = std::chrono::hours

Hours shorthand typedef.

◆ Microseconds

using Microseconds = std::chrono::microseconds

Microseconds shorthand typedef.

◆ Milliseconds

using Milliseconds = std::chrono::milliseconds

Milliseconds shorthand typedef.

◆ Minutes

using Minutes = std::chrono::minutes

Minutes shorthand typedef.

◆ Months

using Months = std::chrono::months

Months shorthand typedef.

◆ Seconds

using Seconds = std::chrono::seconds

Seconds shorthand typedef.

◆ SystemTimePoint

using SystemTimePoint = std::chrono::system_clock::time_point

◆ TimePoint

using TimePoint = std::chrono::steady_clock::time_point

time_point shorthand typedefs

◆ Weeks

using Weeks = std::chrono::weeks

Weeks shorthand typedef.

◆ Years

using Years = std::chrono::years

Years shorthand typedef.

Function Documentation

◆ operator""_days()

constexpr Days operator""_days ( unsigned long long  days)
constexpr
76{
77 return Days(days);
78}
std::chrono::days Days
Days shorthand typedef.
Definition: Duration.h:55

◆ operator""_months()

constexpr Months operator""_months ( unsigned long long  months)
constexpr
91{
92 return Months(months);
93}
std::chrono::months Months
Months shorthand typedef.
Definition: Duration.h:64

◆ operator""_weeks()

constexpr Weeks operator""_weeks ( unsigned long long  weeks)
constexpr
81{
82 return Weeks(weeks);
83}
std::chrono::weeks Weeks
Weeks shorthand typedef.
Definition: Duration.h:58

◆ operator""_years()

constexpr Years operator""_years ( unsigned long long  years)
constexpr
86{
87 return Years(years);
88}
std::chrono::years Years
Years shorthand typedef.
Definition: Duration.h:61