Changeset ee23a8d for doc/theses/andrew_beach_MMath/code/cond-match.cfa
- Timestamp:
- Jul 5, 2021, 3:17:12 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 11ad42f, e84ab3d
- Parents:
- b7763da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/cond-match.cfa
rb7763da ree23a8d 1 1 // Conditional Match (or Re-Raise) 2 #include <clock.hfa> 2 3 #include <exception.hfa> 4 #include <fstream.hfa> 3 5 #include <stdlib.h> 4 6 … … 23 25 int main(int argc, char * argv[]) { 24 26 unsigned int times = 1; 25 if ( 2< argc) {27 if (1 < argc) { 26 28 times = strtol(argv[1], 0p, 10); 27 29 } 28 30 31 Time start_time = time(); 29 32 for (unsigned int count = 0 ; count < times ; ++count) { 30 33 try { … … 34 37 } 35 38 } 39 Time end_time = time(); 40 sout | "Run-Time (ns): " | (end_time - start_time)`ns; 36 41 }
Note: See TracChangeset
for help on using the changeset viewer.