Changeset 197df9b for benchmark


Ignore:
Timestamp:
Sep 29, 2021, 2:01:33 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
c33c2af
Parents:
1db1454
Message:

Only print time refreshing if logs are enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/io/http/protocol.cfa

    r1db1454 r197df9b  
    251251                Time now = timeHiRes();
    252252                strftime( buff, 100, "%a, %d %b %Y %H:%M:%S %Z", now );
    253                 sout | "Updated date to '" | buff | "'";
     253                if( options.log ) sout | "Updated date to '" | buff | "'";
    254254
    255255                for(i; KNOWN_CODES) {
     
    264264                this.idx = (this.idx + 1) % 2;
    265265
    266                 sout | "Date thread sleeping";
     266                if( options.log ) sout | "Date thread sleeping";
    267267
    268268                sleep(1`s);
Note: See TracChangeset for help on using the changeset viewer.