Arcane  v3.14.10.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-2022 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-2019 */
9/* */
10/* Interface d'un gestionnaire de timer. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ITIMERMNG_H
13#define ARCANE_ITIMERMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/ArcaneTypes.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22ARCANE_BEGIN_NAMESPACE
23
24/*---------------------------------------------------------------------------*/
25/*---------------------------------------------------------------------------*/
26
27class Timer;
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
53{
54 public:
55
60 virtual ~ITimerMng() {}
61
62 public:
63
71 virtual void beginTimer(Timer* timer) =0;
72
82 virtual Real endTimer(Timer* timer) =0;
83
90 virtual Real getTime(Timer* timer) =0;
91
98 ARCCORE_DEPRECATED_2019("Do not use this method")
99 virtual bool hasTimer(Timer* timer) =0;
100};
101
102/*---------------------------------------------------------------------------*/
103/*---------------------------------------------------------------------------*/
104
105ARCANE_END_NAMESPACE
106
107/*---------------------------------------------------------------------------*/
108/*---------------------------------------------------------------------------*/
109
110#endif
111
Interface d'un gestionnaire de timer.
Definition ITimerMng.h:53
virtual Real endTimer(Timer *timer)=0
Relâche le timer timer.
virtual void beginTimer(Timer *timer)=0
Attache le timer timer à ce gestionnaire.
virtual Real getTime(Timer *timer)=0
Temps écoulé depuis le dernier appel à beginTimer().
virtual ~ITimerMng()
Libère les ressources.
Definition ITimerMng.h:60
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Gestion d'un timer.
Definition Timer.h:62