Changeset 83b22b53


Ignore:
Timestamp:
Sep 16, 2021, 12:26:53 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
140eb16
Parents:
f46b26b8
Message:

now print expected time before listing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/rmit.py

    rf46b26b8 r83b22b53  
    232232        # ================================================================================
    233233        # Now that we know what to run, print it.
     234        # find expected time
     235        time = actions_eta(actions)
     236        print("Running {} trials{}".format(len(actions), "" if time == 0 else " (expecting to take {})".format(str(datetime.timedelta(seconds=int(time)))) ))
     237
     238        # dry run if options ask for it
    234239        if options.list:
    235240                for a in actions:
     
    240245        # ================================================================================
    241246        # Prepare to run
    242 
    243         # find expected time
    244         time = actions_eta(actions)
    245         print("Running {} trials{}".format(len(actions), "" if time == 0 else " (expecting to take {})".format(str(datetime.timedelta(seconds=int(time)))) ))
    246247
    247248        random.shuffle(actions)
Note: See TracChangeset for help on using the changeset viewer.