netket.utils.timing.timed#
- netket.utils.timing.timed(fun=None, name=None, block_until_ready=True)[source]#
Marks the decorated function to be timed individually in NetKet timing scopes.
- Overloads:
- Parameters:
- Return type:
Callable[[~P], T] | Callable[[Callable[[~P], T]], Callable[[~P], T]]
If name is not specified, the qualified name of the function is used.
The profiling is disabled if no global timer is active.