Changeset 685 for mds-and-trees


Ignore:
Timestamp:
09/03/17 16:14:47 (3 years ago)
Author:
Maciej Komosinski
Message:

Displays progress as convenient percentage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mds-and-trees/tree-genealogy.py

    r684 r685  
    453453        for child in visiting_order:
    454454            node_counter += 1
     455
    455456            # debug info - elapsed time
    456             if node_counter%1000 == 0:
    457                print(str(node_counter) + " " + str(timelib.time()-start_time))
     457            if node_counter % 100000 == 0:
     458               print("%d%%\t%d\t%g" % (node_counter*100/len(self.tree.parents), node_counter, timelib.time()-start_time))
    458459               start_time = timelib.time()
    459460
Note: See TracChangeset for help on using the changeset viewer.