This commit is contained in:
yumoqing 2020-11-06 11:30:56 +08:00
parent fa00e13dc6
commit 1d86f88f48

View File

@ -122,7 +122,7 @@ class ProcessorResource(StaticResource,Url2File):
t = TimeCost(name) t = TimeCost(name)
with t: with t:
x = self._handle1(request) x = self._handle1(request)
print(name,':', 'time cost=', t.end_time = t.begin_time) print(name,':', 'time cost=', t.end_time - t.begin_time)
return x return x
async def _handle1(self,request:Request) -> StreamResponse: async def _handle1(self,request:Request) -> StreamResponse: