Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MpiTimerMng.cc
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/* MpiTimerMng.cc (C) 2000-2005 */
9/* */
10/* Gestionnaire de timer utilisant MPI_Wtime. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14
15#include "arcane/utils/ArcanePrecomp.h"
16
17#include "arcane/parallel/mpi/MpiTimerMng.h"
18#include "arcane/parallel/mpi/ArcaneMpi.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23ARCANE_BEGIN_NAMESPACE
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28extern "C++" ITimerMng*
29createMpiTimerMng(ITraceMng* trace)
30{
31 return new MpiTimerMng(trace);
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
37MpiTimerMng::
38MpiTimerMng(ITraceMng* trace)
39: TimerMng(trace)
40{
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46MpiTimerMng::
47~MpiTimerMng()
48{
49}
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
56{
57 // Pour initialisation
58 ::MPI_Wtime();
59}
60
63{
64 return ::MPI_Wtime();
65}
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70ARCANE_END_NAMESPACE
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
virtual Real _getRealTime()
Retourne le temps réel.
virtual void _setRealTime()
Positionne un timer réel.
Gestionnaire de timer.
Definition TimerMng.h:39
Interface du gestionnaire de traces.