execution time
please tell me execution command so that i will obtained execution time of my code in microsecond.
add a comment
please tell me execution command so that i will obtained execution time of my code in microsecond.
You can just use the %time magic:
sage: %time 12345678987654321.is_prime()
CPU times: user 0 ns, sys: 0 ns, total: 0 ns
Wall time: 32.9 µs
False
You can find moe sophisticated tools on the Profiling in Sage thematic tutorial
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2018-01-27 06:51:22 +0100
Seen: 829 times
Last updated: Jan 27 '18
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.