Changeset c86ee4c for doc/theses/andrew_beach_MMath/code/ThrowOther.java
- Timestamp:
- Jul 7, 2021, 6:24:42 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d83b266
- Parents:
- 1f45c7d (diff), b1a2c4a (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 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/andrew_beach_MMath/code/ThrowOther.java
r1f45c7d rc86ee4c 24 24 } 25 25 26 private static long loop(int times, int total_frames) { 27 long startTime = System.nanoTime(); 28 for (int count = 0 ; count < times ; ++count) { 29 try { 30 unwind_other(total_frames); 31 } catch (EmptyException e) { 32 // ... 33 } catch (NotRaisedException e) { 34 // ... 35 } 36 } 37 long endTime = System.nanoTime(); 38 return endTime - startTime; 39 } 40 26 41 public static void main(String[] args) { 27 42 int times = 1; … … 34 49 } 35 50 36 for (int count = 0 ; count < times ; ++count) { 37 try { 38 unwind_other(total_frames); 39 } catch (EmptyException e) { 40 // ... 41 } catch (NotRaisedException e) { 42 // ... 43 } 44 } 51 // Warm-Up: 52 loop(1000, total_frames); 53 54 long time = loop(times, total_frames); 55 System.out.println("Run-Time (ns): " + time); 45 56 } 46 57 }
Note:
See TracChangeset
for help on using the changeset viewer.