TrinityCore
Duration.h File Reference
#include <chrono>
+ Include dependency graph for Duration.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef std::chrono::milliseconds Milliseconds
 Milliseconds shorthand typedef. More...
 
typedef std::chrono::seconds Seconds
 Seconds shorthand typedef. More...
 
typedef std::chrono::minutes Minutes
 Minutes shorthand typedef. More...
 
typedef std::chrono::hours Hours
 Hours shorthand typedef. More...
 
typedef std::chrono::steady_clock::time_point TimePoint
 time_point shorthand typedefs More...
 
typedef std::chrono::system_clock::time_point SystemTimePoint
 

Functions

constexpr std::chrono::hours operator""_days (unsigned long long days)
 

Typedef Documentation

◆ Hours

typedef std::chrono::hours Hours

Hours shorthand typedef.

◆ Milliseconds

typedef std::chrono::milliseconds Milliseconds

Milliseconds shorthand typedef.

◆ Minutes

typedef std::chrono::minutes Minutes

Minutes shorthand typedef.

◆ Seconds

typedef std::chrono::seconds Seconds

Seconds shorthand typedef.

◆ SystemTimePoint

typedef std::chrono::system_clock::time_point SystemTimePoint

◆ TimePoint

typedef std::chrono::steady_clock::time_point TimePoint

time_point shorthand typedefs

Function Documentation

◆ operator""_days()

constexpr std::chrono::hours operator""_days ( unsigned long long  days)
43 {
44  return std::chrono::hours(days * 24h);
45 }