ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
time.hpp
Go to the documentation of this file.
1/** ************************************************************************************************
2 * \file
3 * This header file is part of module \alib_time of the \aliblong.
4 *
5 * \emoji :copyright: 2013-2024 A-Worx GmbH, Germany.
6 * Published under \ref mainpage_license "Boost Software License".
7 **************************************************************************************************/
8#ifndef HPP_ALIB_TIME_TIME
9#define HPP_ALIB_TIME_TIME 1
10
11#if !defined(HPP_ALIB) && !defined(ALIB_DOX)
12# include "alib/alib.hpp"
13#endif
14
15namespace alib { namespace time {
16
17class Ticks;
18
19/** ************************************************************************************************
20 * Initializes \alib time logic.
21 * Multiple invocations of this method are ignored.
22 *
23 * The \ref alib_manual_bootstrapping "standard bootstrap" code of \alib, hence the (overloaded)
24 * functions \ref alib::Bootstrap will call this function.
25 *
26 * \see
27 * For information about using this method, consult chapter
28 * \ref alib_manual_bootstrapping_nocamps of the \ref alib_manual.
29 **************************************************************************************************/
31void Bootstrap();
32
33/** ************************************************************************************************
34 * Frees resources and shuts down \alib time logic. Multiple invocations of this method are ignored.
35 * The \ref alib_manual_bootstrapping "standard bootstrap" code of \alib, hence the (overloaded)
36 * functions \ref alib::Shutdown will call this function.
37 *
38 * \see
39 * Sibling function \alib{time::Bootstrap}.
40 **************************************************************************************************/
42void Shutdown();
43
44/** ************************************************************************************************
45 * The time when the ticker module containing the ticker (ALIB) was initialized.
46 * This might be useful to measure the time since the process was started.
47 *
48 * @return Initialization time of the module or process
49 **************************************************************************************************/
52
53}} // namespace [alib::time]
54
55#endif // HPP_ALIB_TIME_TIME
#define ALIB_API
Definition alib.hpp:538
void Bootstrap()
Definition time.cpp:50
Ticks & CreationTime()
Definition time.cpp:72
void Shutdown()
Definition time.cpp:63
Definition alib.cpp:57
time::Ticks Ticks
Type alias in namespace alib.
Definition ticks.hpp:114