Changeset 47e413b


Ignore:
Timestamp:
Jul 7, 2021, 1:55:49 PM (3 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b1a2c4a
Parents:
11d4fa5
Message:

Cforall exception benchmarks now use a more high resolution clock.

Location:
doc/theses/andrew_beach_MMath/code
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/andrew_beach_MMath/code/cond-catch.cfa

    r11d4fa5 r47e413b  
    3232        }
    3333
    34         Time start_time = time();
     34        Time start_time = timeHiRes();
    3535        for (unsigned int count = 0 ; count < times ; ++count) {
    3636                try {
     
    4040                }
    4141        }
    42         Time end_time = time();
     42        Time end_time = timeHiRes();
    4343        sout | "Run-Time (ns): " | (end_time - start_time)`ns;
    4444}
  • doc/theses/andrew_beach_MMath/code/cond-fixup.cfa

    r11d4fa5 r47e413b  
    3232        }
    3333
    34         Time start_time = time();
     34        Time start_time = timeHiRes();
    3535        for (unsigned int count = 0 ; count < times ; ++count) {
    3636                try {
     
    4040                }
    4141        }
    42         Time end_time = time();
     42        Time end_time = timeHiRes();
    4343        sout | "Run-Time (ns): " | (end_time - start_time)`ns;
    4444}
  • doc/theses/andrew_beach_MMath/code/cross-catch.cfa

    r11d4fa5 r47e413b  
    1717        }
    1818
    19         Time start_time = time();
     19        Time start_time = timeHiRes();
    2020        for (unsigned int count = 0 ; count < times ; ++count) {
    2121                try {
     
    2525                }
    2626        }
    27         Time end_time = time();
     27        Time end_time = timeHiRes();
    2828        sout | "Run-Time (ns): " | (end_time - start_time)`ns;
    2929}
  • doc/theses/andrew_beach_MMath/code/cross-finally.cfa

    r11d4fa5 r47e413b  
    1515        }
    1616
    17         Time start_time = time();
     17        Time start_time = timeHiRes();
    1818        for (unsigned int count = 0 ; count < times ; ++count) {
    1919                 try {
     
    2323                }
    2424        }
    25         Time end_time = time();
     25        Time end_time = timeHiRes();
    2626        sout | "Run-Time (ns): " | (end_time - start_time)`ns;
    2727}
  • doc/theses/andrew_beach_MMath/code/cross-resume.cfa

    r11d4fa5 r47e413b  
    1717        }
    1818
    19         Time start_time = time();
     19        Time start_time = timeHiRes();
    2020        for (unsigned int count = 0 ; count < times ; ++count) {
    2121                try {
     
    2525                }
    2626        }
    27         Time end_time = time();
     27        Time end_time = timeHiRes();
    2828        sout | "Run-Time (ns): " | (end_time - start_time)`ns;
    2929}
Note: See TracChangeset for help on using the changeset viewer.