Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MpiTimerMng.cc
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/* MpiTimerMng.cc (C) 2000-2005 */
9/* */
10/* Timer manager using MPI_Wtime. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/parallel/mpi/MpiTimerMng.h"
17#include "arcane/parallel/mpi/ArcaneMpi.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28extern "C++" ITimerMng*
29createMpiTimerMng(ITraceMng* trace)
30{
31 return new MpiTimerMng(trace);
32}
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
39: TimerMng(trace)
40{
41}
42
43/*---------------------------------------------------------------------------*/
44/*---------------------------------------------------------------------------*/
45
46MpiTimerMng::
47~MpiTimerMng()
48{
49}
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
56{
57 // For initialization
58 ::MPI_Wtime();
59}
60
63{
64 return ::MPI_Wtime();
65}
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70} // namespace Arcane
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
Interface of a timer manager.
Definition ITimerMng.h:50
Timer manager using the MPI library.
Definition MpiTimerMng.h:41
MpiTimerMng(ITraceMng *trace)
Constructs a timer linked to the subdomain mng.
virtual Real _getRealTime()
Returns the real time.
virtual void _setRealTime()
Sets the real time.
TimerMng(ITraceMng *msg)
Constructs a timer linked to the manager mng.
Definition TimerMng.cc:39
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.