Ignore:
Timestamp:
Jun 24, 2020, 5:42:13 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
c34ebf2
Parents:
8b58bae
Message:

benchmark should now print progress as doubles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/benchcltr.hfa

    r8b58bae rc953163  
    2828void wait(double duration, Time & start, Time & end, bool is_tty) {
    2929      for() {
    30             sleep(500`ms);
     30            sleep(100`ms);
    3131            end = getTime();
    3232            if( (end - start) >= duration`s ) {
     
    3434            }
    3535            if(is_tty) {
    36                   printf("\r%.4lf", (double)(end - start)`s);
     36                  printf("\r%.4lf", (end - start)`ds);
    3737                  fflush(stdout);
    3838            }
Note: See TracChangeset for help on using the changeset viewer.