NRE_Clock.hpp File Reference

Declaration of Time's API's Object : Clock. More...

#include <iostream>
#include <thread>
#include <chrono>
#include <Utility/String/NRE_String.hpp>
#include "NRE_Clock.tpp"

Go to the source code of this file.

Classes

class  NRE::Time::Clock
 Manage timing and program pause. More...
 

Namespaces

 NRE
 The NearlyRealEngine's global namespace.
 
 Time
 Time's API.
 

Typedefs

typedef std::chrono::steady_clock NRE::Time::Chrono
 
typedef std::chrono::time_point< Chrono > NRE::Time::TimePoint
 
typedef std::chrono::duration< float, std::milli > NRE::Time::TimeStep
 

Functions

std::ostream & NRE::Time::operator<< (std::ostream &stream, Clock const &o)
 

Detailed Description

Declaration of Time's API's Object : Clock.

Author
Louis ABEL
Date
14/05/2019

Typedef Documentation

typedef std::chrono::steady_clock NRE::Time::Chrono

Shortcut to hide Chrono type

typedef std::chrono::time_point<Chrono> NRE::Time::TimePoint

Shortcut to hide TimePoint type

typedef std::chrono::duration<float, std::milli> NRE::Time::TimeStep

Shortcut to hide TimeStep type

Function Documentation

std::ostream & NRE::Time::operator<< ( std::ostream &  stream,
Clock const &  o 
)

Output stream operator for the object

Parameters
streamthe stream to add the object's string representation
othe object to add in the stream
Returns
the modified stream