detkit.Profile.proc_time#
- Profile.proc_time()#
Measure process time.
- Returns:
- wall_timefloat
Process time since calling
detkit.Profile.set()
.
Examples
>>> from detkit import Profile, memdet, human_readable_time >>> import numpy >>> # Create a random matrix >>> A = numpy.random.randn(10000, 10000) >>> # Initialize profile >>> prof = Profile() >>> # Set the starting point of memory inquiry >>> prof.set() >>> # Perform a memory-intensive operation >>> ld = memdet(A) >>> # Inquiry process time >>> print(human_readable_time(prof.proc_time())) 19.0 sc