ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
time
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 =======================================
28
using namespace
std::chrono;
29
30
namespace
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.
39
namespace
time
{
40
41
// #################################################################################################
42
// Module Bootstrap/Termination
43
// #################################################################################################
44
#if !DOXYGEN
45
namespace
{
Ticks
creationTime; }
46
#endif
47
48
# include "
ALib.Lang.CIFunctions.H
"
49
50
Ticks
&
CreationTime
() {
return
creationTime; }
51
52
}}
// namespace [alib::time]
53
ALib.Boxing.H
ALib.Lang.CIFunctions.H
ALib.Time.H
alib.inl
alib_precompile.hpp
alib::time::Ticks
Definition
ticks.inl:35
ALib.Boxing
ALib.Time
alib::time
Definition
datetime.cpp:24
alib::time::CreationTime
Ticks & CreationTime()
Definition
time.cpp:50
alib
Definition
ALib.Boxing.StdFunctors.H:18