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
264 void _setStartTime(
Real t) { m_start_time = t; }
266 Real _startTime()
const {
return m_start_time; }
270 ITimerMng* m_timer_mng;
274 Real m_activation_time;
Declarations of Arcane's general types.
Interface of the subdomain manager.
Interface of a timer manager.
Unicode character string.
Sentry(Timer *t)
Associates the timer t and starts it.
~Sentry()
Stops the associated timer.
const String & name() const
Returns the name of the timer.
Integer nbActivated() const
Returns the 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).
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.
bool isActivated() const
Returns the activation status of the timer.
void start()
Activates the timer.
Real lastActivationTime() const
Returns the time (in seconds) spent during the last activation of 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.