qlat_utils.timer_flops

qlat_utils.timer_flops(func)

Timing functions with flops.

Usage:

@q.timer_flops
def function(args):
    ...
    return flops, ret

Modified function will only return ret in above example.