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

Method check

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

check cost time from start Args: reset_start (TYPE): Default is True Returns: TODO Raises: NULL

(self)

Source from the content-addressed store, hash-verified

64 self._start = curr_time
65
66 def check(self):
67 """check cost time from start
68
69 Args:
70 reset_start (TYPE): Default is True
71
72 Returns: TODO
73
74 Raises: NULL
75 """
76 end = time.time()
77 cost = end - self._start
78 return cost
79
80 def interval(self):
81 """check cost time from lst

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected