ALib C++ Library
by
Library Version:
2412 R0
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
#pragma once
11
#if !defined(DOXYGEN)
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 forbidden.
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.
35
/// The \ref alib_manual_bootstrapping "standard bootstrap" code of \alib, hence the (overloaded)
36
/// functions \ref alib::Shutdown will call this function.
37
/// Multiple invocations of this method are forbidden.
38
///
39
/// \see
40
/// Sibling function \alib{time::Bootstrap}.
41
//==================================================================================================
42
ALIB_API
43
void
Shutdown
();
44
45
//==================================================================================================
46
/// The time when the ticker module containing the ticker (ALIB) was initialized.
47
/// This might be useful to measure the time since the process was started.
48
///
49
/// @return Initialization time of the module or process
50
//==================================================================================================
51
ALIB_API
52
Ticks
&
CreationTime
();
53
54
}}
// namespace [alib::time]
55
56
#endif
// HPP_ALIB_TIME_TIME
57
alib.hpp
ALIB_API
#define ALIB_API
Definition
alib.hpp:639
alib::time::Bootstrap
void Bootstrap()
Definition
time.cpp:48
alib::time::CreationTime
Ticks & CreationTime()
Definition
time.cpp:75
alib::time::Shutdown
void Shutdown()
Definition
time.cpp:64
alib
Definition
alib.cpp:69
alib::Ticks
time::Ticks Ticks
Type alias in namespace alib.
Definition
ticks.hpp:115