ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
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>
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 ==========================================
39#include "alib/time/ticks.inl"
42
43
44ALIB_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//==================================================================================================
54
55} // namespace [alib::time]
#define ALIB_DLL
Definition alib.inl:496
#define ALIB_EXPORT
Definition alib.inl:488
Ticks & CreationTime()
Definition time.cpp:50