Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
ITimerMng.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ITimerMng.h (C) 2000-2025 */
9/* */
10/* Interface of a timer manager. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ITIMERMNG_H
13#define ARCANE_CORE_ITIMERMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
50{
51 public:
52
57 virtual ~ITimerMng() = default;
58
59 public:
60
68 virtual void beginTimer(Timer* timer) = 0;
69
79 virtual Real endTimer(Timer* timer) = 0;
80
87 virtual Real getTime(Timer* timer) = 0;
88
95 ARCCORE_DEPRECATED_2019("Do not use this method")
96 virtual bool hasTimer(Timer* timer) = 0;
97};
98
99/*---------------------------------------------------------------------------*/
100/*---------------------------------------------------------------------------*/
101
102} // namespace Arcane
103
104/*---------------------------------------------------------------------------*/
105/*---------------------------------------------------------------------------*/
106
107#endif
Declarations of Arcane's general types.
Interface of a timer manager.
Definition ITimerMng.h:50
virtual Real endTimer(Timer *timer)=0
Releases the timer timer.
virtual bool hasTimer(Timer *timer)=0
Indicates if the timer timer is registered.
virtual void beginTimer(Timer *timer)=0
Attaches the timer timer to this manager.
virtual ~ITimerMng()=default
Frees resources.
virtual Real getTime(Timer *timer)=0
Time elapsed since the last call to beginTimer().
Management of a timer.
Definition Timer.h:63
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.