This commit is contained in:
yumoqing 2020-11-06 11:27:42 +08:00
parent 115608cf98
commit fa00e13dc6

View File

@ -118,12 +118,11 @@ class ProcessorResource(StaticResource,Url2File):
return ns
async def _handle(self,request:Request) -> StreamResponse:
t = TimeCost()
name = str(request.url)
t.begin(name)
t = TimeCost(name)
with t:
x = self._handle1(request)
t.end(name)
print(name,':', ':'.join(t.getTimeCost(name)))
print(name,':', 'time cost=', t.end_time = t.begin_time)
return x
async def _handle1(self,request:Request) -> StreamResponse: