Arcane  v3.16.6.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ITimerMng.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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 d'un gestionnaire de timer. */
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/*---------------------------------------------------------------------------*/
49{
50 public:
51
56 virtual ~ITimerMng() = default;
57
58 public:
59
67 virtual void beginTimer(Timer* timer) = 0;
68
78 virtual Real endTimer(Timer* timer) = 0;
79
86 virtual Real getTime(Timer* timer) = 0;
87
94 ARCCORE_DEPRECATED_2019("Do not use this method")
95 virtual bool hasTimer(Timer* timer) = 0;
96};
97
98/*---------------------------------------------------------------------------*/
99/*---------------------------------------------------------------------------*/
100
101} // namespace Arcane
102
103/*---------------------------------------------------------------------------*/
104/*---------------------------------------------------------------------------*/
105
106#endif
Déclarations des types généraux de Arcane.
Interface d'un gestionnaire de timer.
Definition ITimerMng.h:49
virtual Real endTimer(Timer *timer)=0
Relâche le timer timer.
virtual bool hasTimer(Timer *timer)=0
Indique si le timer timer est enregistré.
virtual void beginTimer(Timer *timer)=0
Attache le timer timer à ce gestionnaire.
virtual ~ITimerMng()=default
Libère les ressources.
virtual Real getTime(Timer *timer)=0
Temps écoulé depuis le dernier appel à beginTimer().
Gestion d'un timer.
Definition Timer.h:62
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
double Real
Type représentant un réel.