qlat_utils.timer_verbose_flops

qlat_utils.timer_verbose_flops(func)

Timing functions with flops. Always show output if get_verbose_level() > 0

Usage:

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

Modified function will only return ret in above example.