ocssw
V2022
|
Public Member Functions | |
def | __init__ (self) |
def | end (self) |
def | get_end_time_str (self) |
def | get_start_time_str (self) |
def | start (self) |
def | get_total_time (self) |
def | get_total_time_str (self) |
def | __repr__ (self) |
def | __str__ (self) |
Public Attributes | |
start_time | |
end_time | |
total_time | |
Detailed Description
A class for simple benchmark timing.
Definition at line 14 of file benchmark_timer.py.
Constructor & Destructor Documentation
◆ __init__()
def __init__ | ( | self | ) |
Definition at line 16 of file benchmark_timer.py.
Member Function Documentation
◆ __repr__()
def __repr__ | ( | self | ) |
Definition at line 71 of file benchmark_timer.py.
◆ __str__()
def __str__ | ( | self | ) |
Definition at line 79 of file benchmark_timer.py.
◆ end()
def end | ( | self | ) |
Sets the end time of the timer.
Definition at line 21 of file benchmark_timer.py.
◆ get_end_time_str()
def get_end_time_str | ( | self | ) |
Definition at line 32 of file benchmark_timer.py.
◆ get_start_time_str()
def get_start_time_str | ( | self | ) |
Definition at line 38 of file benchmark_timer.py.
◆ get_total_time()
def get_total_time | ( | self | ) |
Returns the elapsed time.
Definition at line 51 of file benchmark_timer.py.
◆ get_total_time_str()
def get_total_time_str | ( | self | ) |
Returns the elapsed time.
Definition at line 61 of file benchmark_timer.py.
◆ start()
def start | ( | self | ) |
Sets the start time of the timer.
Definition at line 44 of file benchmark_timer.py.
Member Data Documentation
◆ end_time
end_time |
Definition at line 18 of file benchmark_timer.py.
◆ start_time
start_time |
Definition at line 17 of file benchmark_timer.py.
◆ total_time
total_time |
Definition at line 19 of file benchmark_timer.py.
The documentation for this class was generated from the following file:
- /gfs-oceanweb/web/ocssw/ocssw_src/src/scripts/mlp/benchmark_timer.py