ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
time.cpp
1// #################################################################################################
2// ALib C++ Library
3//
4// Copyright 2013-2025 A-Worx GmbH, Germany
5// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6// #################################################################################################
7#include "alib_precompile.hpp"
8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
10#endif
11#if ALIB_C20_MODULES
12 module;
13#endif
14// ====================================== Global Fragment ======================================
15#include "alib/alib.inl"
16// =========================================== Module ==========================================
17#if ALIB_C20_MODULES
18 module ALib.Time;
19 #if ALIB_BOXING
20 import ALib.Boxing;
21 #endif
22
23#else
24# include "ALib.Time.H"
25# include "ALib.Boxing.H"
26#endif
27// ====================================== Implementation =======================================
28using namespace std::chrono;
29
30namespace alib {
31
32/// This namespace provides types for calendrical date and time processing as well as
33/// for non-calendrical steady and monotonic time measurement.
34///
35/// This namespace and the types provided, are always included in any \alibbuild.
36///
37/// Besides this reference documentation, further information is provided with
38/// \ref alib_mod_time "Programmer's Manual" of \alib_time_nl.
39namespace time {
40
41// #################################################################################################
42// Module Bootstrap/Termination
43// #################################################################################################
44#if !DOXYGEN
45namespace { Ticks creationTime; }
46#endif
47
49
50Ticks& CreationTime() { return creationTime; }
51
52}} // namespace [alib::time]
53
Ticks & CreationTime()
Definition time.cpp:50