Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 2d81880 in mainline


Ignore:
Timestamp:
2019-01-21T13:52:34Z (2 years ago)
Author:
Vojtech Horky <vojtech.horky@…>
Branches:
lfn, master
Children:
871cff9a
Parents:
9736c00
Message:

hbench: explain why we inline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/hbench/hbench.h

    r9736c00 r2d81880  
    9393extern bool bench_run_fail(bench_run_t *, const char *, ...);
    9494
     95/*
     96 * We keep the following two functions inline to ensure that we start
     97 * measurement as close to the surrounding code as possible. Note that
     98 * this inlining is done at least on the level of individual wrappers
     99 * (this one and the one provided by stopwatch_t) to pass the control
     100 * as fast as possible to the actual timer used.
     101 */
     102
    95103static inline void bench_run_start(bench_run_t *run)
    96104{
Note: See TracChangeset for help on using the changeset viewer.