KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Member Functions | Public Attributes | List of all members
logger_utilities.TimeLogger Class Reference

A context responsible for outputting execution times. More...

Collaboration diagram for logger_utilities.TimeLogger:

Public Member Functions

def __init__ (self, str topic, str entry_msg, str exit_msg, bool end_new_line=True)
 
def __enter__ (self)
 
def __exit__ (self, exit_type, exit_value, exit_traceback)
 

Public Attributes

 topic
 
 entry_msg
 
 exit_msg
 
 start_time
 
 end_new_line
 

Detailed Description

A context responsible for outputting execution times.

Constructor & Destructor Documentation

◆ __init__()

def logger_utilities.TimeLogger.__init__ (   self,
str  topic,
str   entry_msg,
str  exit_msg,
bool  end_new_line = True 
)

Member Function Documentation

◆ __enter__()

def logger_utilities.TimeLogger.__enter__ (   self)

◆ __exit__()

def logger_utilities.TimeLogger.__exit__ (   self,
  exit_type,
  exit_value,
  exit_traceback 
)

Member Data Documentation

◆ end_new_line

logger_utilities.TimeLogger.end_new_line

◆ entry_msg

logger_utilities.TimeLogger.entry_msg

◆ exit_msg

logger_utilities.TimeLogger.exit_msg

◆ start_time

logger_utilities.TimeLogger.start_time

◆ topic

logger_utilities.TimeLogger.topic

The documentation for this class was generated from the following file: