Skip to content

Commit

Permalink
add toy example to illustrate how to use CTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Sep 26, 2011
1 parent 0c743b2 commit 70eff01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/undocumented/python_modular/library_time.py
@@ -0,0 +1,12 @@
import time
from modshogun import Time


# measure wall clock time difference
t=Time()
time.sleep(1)
diff=t.cur_time_diff()

# measure CPU time required

cpu_diff=t.cur_runtime_diff_sec()

0 comments on commit 70eff01

Please sign in to comment.