ALib C++ Library
by
Library Version:
2511 R0
Documentation generated by
Loading...
Searching...
No Matches
A-Worx
ALib
src
alib
time
time.mpp
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of the \aliblong.
4
/// With supporting legacy or module builds, .mpp-files are either recognized by the build-system
5
/// as C++20 Module interface files, or are included by the
6
/// \ref alib_manual_modules_impludes "import/include headers".
7
///
8
/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
9
/// Published under \ref mainpage_license "Boost Software License".
10
//==================================================================================================
11
#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
12
# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
13
#endif
14
#if ALIB_C20_MODULES
15
module
;
16
#endif
17
//========================================= Global Fragment ========================================
18
#include "
alib/alib.inl
"
19
#include <chrono>
20
#include <cmath>
21
#include "
alib/platformincludes.hpp
"
22
//============================================== Module ============================================
23
#if ALIB_C20_MODULES
24
/// This is a <em><b>C++ Module</b></em> of the \aliblong.
25
/// Due to the dual-compile option (either as C++20 Modules or using legacy C++ inclusion),
26
/// the C++20 Module names are not of further interest or use.<br>
27
/// In general, the names equal the names of the header files listed in the chapter
28
/// \ref alib_manual_modules_impludes of the \alib User Manual.
29
///
30
/// @see The documentation of the <em><b>"ALib Module"</b></em> given with the corresponding
31
/// Programmer's Manual \alib_time.
32
export
module
ALib.Time;
33
import
ALib.Lang;
34
#else
35
# include "
ALib.Lang.H
"
36
#endif
37
38
//============================================= Exports ============================================
39
#include "
alib/time/timepointbase.inl
"
40
#include "
alib/time/datetime.inl
"
41
#include "
alib/time/ticks.inl
"
42
#include "
alib/time/tickconverter.inl
"
43
#include "
alib/time/stopwatch.inl
"
44
45
46
ALIB_EXPORT
namespace
alib::time
{
47
48
//==================================================================================================
49
/// The time when the ticker module containing the ticker (ALIB) was initialized.
50
/// This might be useful to measure the time since the process was started.
51
///
52
/// @return Initialization time of the module or process
53
//==================================================================================================
54
ALIB_DLL
55
Ticks
&
CreationTime
();
56
57
}
// namespace [alib::time]
ALib.Lang.H
alib.inl
alib::time::Ticks
Definition
ticks.inl:35
datetime.inl
ALIB_DLL
#define ALIB_DLL
Definition
alib.inl:503
ALIB_EXPORT
#define ALIB_EXPORT
Definition
alib.inl:497
alib::time
Definition
datetime.cpp:24
alib::time::CreationTime
Ticks & CreationTime()
Definition
time.cpp:50
platformincludes.hpp
stopwatch.inl
tickconverter.inl
ticks.inl
timepointbase.inl