pipeline_benchmarker.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:bifrost 作者: ledatelescope 项目源码 文件源码
def timeit(self, method):
        """ Decorator for timing execution of a method 

        Returns:

            function: the original function, wrapped
                       with a time accumulator
        """
        def timed(*args, **kw):
            ts = timer()
            result = method(*args, **kw)
            te = timer()

            self.relevant_clock_time += te-ts
            return result
        return timed
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号