MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / __init__

Method __init__

NLP/Text2SQL-BASELINE/text2sql/utils/utils.py:36–47  ·  view source on GitHub ↗

init of class Args: msg (TYPE): Default is ""

(self, msg="")

Source from the content-addressed store, hash-verified

34 """Stat Cost Time"""
35
36 def __init__(self, msg=""):
37 """init of class
38
39 Args:
40 msg (TYPE): Default is ""
41
42 """
43 super(Timer, self).__init__()
44
45 self._msg = msg
46 self._start = time.time()
47 self._last = self._start
48
49 def reset(self, only_last=False, msg=None):
50 """reset all setting

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected