el1xr_opt.Modules.utils.oM_Utils#
- el1xr_opt.Modules.utils.oM_Utils.log_time(message, start_time, unit='seconds', ind_log='False', decimals=1, right_margin=1, anchor_col=None, ensure_colon=True)[source]#
Print
messagewith elapsed time aligned to the right.anchor_col: if given, align so the end of the time string lands at this column. Otherwise align to the terminal’s right edge.
right_margin: spaces to keep between the time string and the right edge (ignored if anchor_col is set).
- Parameters:
message (str)
start_time (float)
unit (str)
ind_log (str)
decimals (int)
right_margin (int)
anchor_col (int | None)
ensure_colon (bool)