##// END OF EJS Templates
Add %time within function to doctest.
Thomas Kluyver -
Show More
@@ -274,6 +274,14 b' def doctest_time():'
274 In [10]: %time None
274 In [10]: %time None
275 CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
275 CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
276 Wall time: 0.00 s
276 Wall time: 0.00 s
277
278 In [11]: def f(kmjy):
279 ....: %time print 2*kmjy
280
281 In [12]: f(3)
282 6
283 CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
284 Wall time: 0.00 s
277 """
285 """
278
286
279
287
General Comments 0
You need to be logged in to leave comments. Login now