CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
Chrono.hpp File Reference
#include "CeresEngine/DataTypes.hpp"
#include "CeresEngine/Macros.hpp"
#include <chrono>
#include <ratio>

Go to the source code of this file.

Namespaces

namespace  CeresEngine
 

Typedefs

template<typename Representation , typename Period = std::ratio<1>>
using CeresEngine::TTimeInterval = std::chrono::duration< Representation, Period >
 Represents a time interval.
 
using CeresEngine::TimeInterval = TTimeInterval< double >
 Represents a time interval.
 
using CeresEngine::Nanoseconds = TTimeInterval< TimeInterval::rep, std::nano >
 A time duration with nanoseconds.
 
using CeresEngine::Microseconds = TTimeInterval< TimeInterval::rep, std::micro >
 A time duration with microseconds.
 
using CeresEngine::Milliseconds = TTimeInterval< TimeInterval::rep, std::milli >
 A time duration with milliseconds.
 
using CeresEngine::Seconds = TTimeInterval< TimeInterval::rep >
 A time duration with seconds.
 
using CeresEngine::Minutes = TTimeInterval< TimeInterval::rep, std::ratio< 60 > >
 A time duration with minutes.
 
using CeresEngine::Hours = TTimeInterval< TimeInterval::rep, std::ratio< 3600 > >
 A time duration with hours.
 
using CeresEngine::Days = TTimeInterval< TimeInterval::rep, std::ratio< 86400 > >
 A time duration with days.
 
using CeresEngine::Weeks = TTimeInterval< TimeInterval::rep, std::ratio< 604800 > >
 A time duration with weeks.
 
using CeresEngine::Months = TTimeInterval< TimeInterval::rep, std::ratio< 2629746 > >
 A time duration with months.
 
using CeresEngine::Years = TTimeInterval< TimeInterval::rep, std::ratio< 31556952 > >
 A time duration with years.
 
using CeresEngine::SystemClock = std::chrono::system_clock
 
using CeresEngine::SteadyClock = std::chrono::steady_clock
 
using CeresEngine::HighResolutionClock = std::chrono::high_resolution_clock
 
template<typename Clock , typename Duration = typename Clock::duration>
using CeresEngine::TDate = std::chrono::time_point< Clock, Duration >
 Represents a point in time.
 
using CeresEngine::Date = TDate< SystemClock, TimeInterval >
 Represents a point in time.
 
using CeresEngine::SteadyClockDate = TDate< SteadyClock, TimeInterval >
 Represents a point in time.