Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Duration.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include <chrono>
#include <climits>
#include <string>
#include "Stroika/Foundation/Characters/FloatConversion.h"
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Common/Common.h"
#include "Stroika/Foundation/Execution/Exceptions.h"
#include "Stroika/Foundation/Time/Common.h"
#include "Stroika/Foundation/Time/Realtime.h"
#include "Stroika/Foundation/Traversal/Range.h"
#include "Duration.inl"

Go to the source code of this file.

Classes

class  Stroika::Foundation::Time::Duration
 Duration is a chrono::duration<double> (=. More...
 
struct  Stroika::Foundation::Traversal::RangeTraits::Default< Time::Duration >
 

Namespaces

namespace  Stroika::Foundation
 
namespace  Stroika::Foundation::Traversal::RangeTraits
 

Functions

Duration Stroika::Foundation::Time::operator""_duration (const char *str, size_t len)
 user defined literal for Duration, specified in ISO8601 format.
 
Duration Stroika::Foundation::Time::operator+ (const DurationSeconds &lhs, const Duration &rhs)
 
Duration Stroika::Foundation::Time::operator* (long double lhs, const Duration &rhs)
 

Detailed Description

Note
Code-Status: Beta

TODO:

Definition in file Duration.h.

Function Documentation

◆ operator+()

Duration Stroika::Foundation::Time::operator+ ( const DurationSeconds lhs,
const Duration rhs 
)

Return the sum of the two durations.

Must operators not needed (inherited from duration<>) - but these needed when LHS of operator is not a duration type

Definition at line 330 of file Duration.inl.

◆ operator*()

Duration Stroika::Foundation::Time::operator* ( long double  lhs,
const Duration rhs 
)

Multiply the duration by the floating point argument

Must operators not needed (inherited from duration<>) - but these needed when LHS of operator is not a duration type

Definition at line 334 of file Duration.inl.