ALib C++ Library
by
Library Version:
2402 R1
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
time
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
15
namespace
alib
{
namespace
time {
16
17
class
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
**************************************************************************************************/
30
ALIB_API
31
void
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
**************************************************************************************************/
41
ALIB_API
42
void
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
**************************************************************************************************/
50
ALIB_API
51
Ticks
&
CreationTime
();
52
53
}}
// namespace [alib::time]
54
55
#endif
// HPP_ALIB_TIME_TIME
alib.hpp
ALIB_API
#define ALIB_API
Definition
alib.hpp:538
alib::time::Bootstrap
void Bootstrap()
Definition
time.cpp:50
alib::time::CreationTime
Ticks & CreationTime()
Definition
time.cpp:72
alib::time::Shutdown
void Shutdown()
Definition
time.cpp:63
alib
Definition
alib.cpp:57
alib::Ticks
time::Ticks Ticks
Type alias in namespace alib.
Definition
ticks.hpp:114