smpl_debug.debug.times

smpl_debug.debug.times(t=1, _back=0)[source]

Returns true if the count of the current line is greater than or equal to t.

Parameters

tint

The count to check against.

_backint

Number of stack/frames to go back.

Returns

bool

True if the count of the current line is greater than or equal to t.

Examples

>>> reset_times()
>>> for i in range(10):
...     if times(3):
...         print(i)
0
1
2