Ignore:
Timestamp:
Feb 15, 2005, 10:06:59 AM (20 years ago)
Author:
duncan
Message:

added a timer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/examples/run_tsh.py

    r866 r885  
    2424from Numeric import array
    2525
     26import time
    2627
    2728from config import default_datadir
     
    131132    ######################
    132133    #Evolution
     134    t0 = time.time()
    133135    for t in domain.evolve(yieldstep = yieldstep, finaltime = finaltime):
    134136        domain.write_time()
    135137   
    136     print 'Done'
     138    print 'That took %.2f seconds' %(time.time()-t0)
    137139
    138140   
Note: See TracChangeset for help on using the changeset viewer.