12#ifndef ARCANE_CORE_TIMER_H
13#define ARCANE_CORE_TIMER_H
17#include "arcane/utils/String.h"
118 class ARCANE_CORE_EXPORT Action
122 Action(
ISubDomain* sub_domain,
const String& action_name,
bool print_time =
false);
123 Action(
ITimeStats* stats,
const String& action_name,
bool print_time =
false);
141 class ARCANE_CORE_EXPORT Phase
174 class ARCANE_CORE_EXPORT SimplePrinter
Declarations of Arcane's general types.
Interface of the subdomain manager.
Interface managing execution time statistics.
Interface of a timer manager.
Unicode character string.
ITimeStats * m_stats
Sub-domain manager.
Sentry(Timer *t)
Associates the timer t and starts it.
~Sentry()
Stops the associated timer.
Timer * m_timer
Associated timer.
const String & name() const
Returns the name of the timer.
void _setStartTime(Real t)
Integer nbActivated() const
Returns the number of times the timer has been activated.
eTimerType m_type
Timer type.
Real m_activation_time
Time spent during the last activation.
Integer m_nb_activated
Number of times the timer has been activated.
ITimerMng * timerMng() const
Manager associated with this timer.
Real stop()
Deactivates the timer.
@ TimerReal
Timer using real time.
@ TimerVirtual
Timer using CPU time (obsolete).
ITimerMng * m_timer_mng
Timer manager.
eTimerType type() const
Returns the type of time used.
Timer(ISubDomain *sd, const String &name, eTimerType type)
Constructs a timer.
Real totalTime() const
Returns the total time (in seconds) spent in the timer.
Real m_start_time
Time of the start of the last activation.
bool isActivated() const
Returns the activation status of the timer.
bool m_is_activated
true if the timer is active
void start()
Activates the timer.
Real lastActivationTime() const
Returns the time (in seconds) spent during the last activation of the timer.
Real m_total_time
Total time spent in the timer.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
double Real
Type representing a real number.
eTimePhase
Phase of a temporal action.