ALib C++ Library
Library Version: 2412 R0
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#pragma once
11#if !defined(DOXYGEN)
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 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//==================================================================================================
31void 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//==================================================================================================
43void 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//==================================================================================================
53
54}} // namespace [alib::time]
55
56#endif // HPP_ALIB_TIME_TIME
57
#define ALIB_API
Definition alib.hpp:639
void Bootstrap()
Definition time.cpp:48
Ticks & CreationTime()
Definition time.cpp:75
void Shutdown()
Definition time.cpp:64
Definition alib.cpp:69
time::Ticks Ticks
Type alias in namespace alib.
Definition ticks.hpp:115