ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
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 C++ Module of the \aliblong. Due to the dual-compile option - as either
25
/// C++20 Modules or legacy C++ inclusion, the C++20 Module names are not of further interest
26
/// 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
/// This chapter, among others, provides further explanations.
30
export
module
ALib.Time
;
31
import
ALib.Lang
;
32
#else
33
# include "
ALib.Lang.H
"
34
#endif
35
36
// ========================================== Exports ==========================================
37
#include "
alib/time/timepointbase.inl
"
38
#include "
alib/time/datetime.inl
"
39
#include "
alib/time/ticks.inl
"
40
#include "
alib/time/tickconverter.inl
"
41
#include "
alib/time/stopwatch.inl
"
42
43
44
ALIB_EXPORT
namespace
alib::time
{
45
46
//==================================================================================================
47
/// The time when the ticker module containing the ticker (ALIB) was initialized.
48
/// This might be useful to measure the time since the process was started.
49
///
50
/// @return Initialization time of the module or process
51
//==================================================================================================
52
ALIB_DLL
53
Ticks
&
CreationTime
();
54
55
}
// 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:496
ALIB_EXPORT
#define ALIB_EXPORT
Definition
alib.inl:488
ALib.Lang
ALib.Time
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