diff options
| author | azidar | 2015-07-02 14:55:04 -0700 |
|---|---|---|
| committer | azidar | 2015-07-02 14:55:04 -0700 |
| commit | a9d4b3edf92c2e366028ae940501a72444f070d7 (patch) | |
| tree | b2de559f5b688dbe705c2c16c4768250165cbdb1 /src/main/stanza/compilers.stanza | |
| parent | f87399045123c8bc73dabe82ecff6a9a5bdfea41 (diff) | |
Fixed stanza, optimize works, added a time printout
Diffstat (limited to 'src/main/stanza/compilers.stanza')
| -rw-r--r-- | src/main/stanza/compilers.stanza | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/stanza/compilers.stanza b/src/main/stanza/compilers.stanza index 7b5f126c..2f6329dc 100644 --- a/src/main/stanza/compilers.stanza +++ b/src/main/stanza/compilers.stanza @@ -75,9 +75,15 @@ public defn run-passes (c:Circuit,ls:List<Pass>) : println("Compiling!") if PRINT-CIRCUITS : println("Original Circuit") if PRINT-CIRCUITS : print(c) + val start-time = current-time-us() + var t = start-time for p in ls do : if PRINT-CIRCUITS : println(name(p)) c* = pass(p)(c*) if PRINT-CIRCUITS : print(c*) if PRINT-CIRCUITS : println-all(["Finished " name(p) "\n"]) + val current-time = current-time-us() + println-all(["Time since start: " current-time - start-time]) + println-all(["Time for this pass: " current-time - t]) + t = current-time println("Done!") |
