Changeset 5a40e4e for doc/theses/andrew_beach_MMath/code/try-catch.cfa
- Timestamp:
- Sep 9, 2021, 3:56:32 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- d0b9247
- Parents:
- dd1cc02 (diff), d8d512e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/try-catch.cfa
rdd1cc02 r5a40e4e 3 3 #include <exception.hfa> 4 4 #include <fstream.hfa> 5 #include <stdlib.hfa> 5 #include <stdlib.hfa> // strto 6 6 7 EHM_EXCEPTION(not_raised_exception)(); 8 9 EHM_VIRTUAL_TABLE(not_raised_exception, not_vt); 7 exception not_raised_exception; 8 vtable(not_raised_exception) not_vt; 10 9 11 10 int main(int argc, char * argv[]) { … … 13 12 volatile bool should_throw = false; 14 13 if (1 < argc) { 15 times = strto l(argv[1], 0p, 10);14 times = strto(argv[1], 0p, 10); 16 15 } 17 16 … … 28 27 } 29 28 Time end_time = timeHiRes(); 30 sout | "Run-Time ( ns): " | (end_time - start_time)`ns;29 sout | "Run-Time (s): " | wd(0,1, (end_time - start_time)`ns / 1_000_000_000.); 31 30 }
Note:
See TracChangeset
for help on using the changeset viewer.