diff --git a/appPublic/timecost.py b/appPublic/timecost.py index 8243718..5d20596 100644 --- a/appPublic/timecost.py +++ b/appPublic/timecost.py @@ -26,6 +26,14 @@ class TimeCost: return 0,0,0 return len(x), sum(x), sum(x)/len(x) + @classmethod + def clear_all(self): + timerecord = {} + + @classmethod + def clear(self, name): + timerecord[name] = [] + @classmethod def show(self): print('TimeCost ....') diff --git a/appPublic/version.py b/appPublic/version.py index fd3529a..6e42b5c 100644 --- a/appPublic/version.py +++ b/appPublic/version.py @@ -1 +1 @@ -__version__ = '5.1.21' +__version__ = '5.1.22'