Next: , Previous: , Up: Data Collection reference   [Contents][Index]


4.5.3 Time Reference

C Data Type: micro_benchmark_clock_time { int32_t seconds,

int32_t nanoseconds }

Structure used by the framework for time measuring.


C Data Type: micro_benchmark_clock_type { MICRO_BENCHMARK_CLOCK_REALTIME, MICRO_BENCHMARK_CLOCK_MONOTONIC, MICRO_BENCHMARK_CLOCK_PROCESS, MICRO_BENCHMARK_CLOCK_THREAD }

Clock type enumeration (see Predefined Clocks.)


C Data Type: micro_benchmark_time_sample_ { bool discarded, size_t iterations, micro_benchmark_clock_time elapsed }

Time sample value. This data type contains, at least, the specified values discarded, iterations and elapsed.


C Data Type: micro_benchmark_time_sample

Pointer to a constant value of type micro_benchmark_time_sample_.


C Data Type: micro_benchmark_time_samples

Pointer to an array of constant values of type micro_benchmark_time_sample_ values. This type is equivalent to micro_benchmark_time_sample and it is used only for documentation purposes.


C Data Type: micro_benchmark_stats_unit { MICRO_BENCHMARK_STATS_UNIT_NONE, MICRO_BENCHMARK_STATS_ITERATIONS, MICRO_BENCHMARK_STATS_TIME_MIN, MICRO_BENCHMARK_STATS_TIME_S, MICRO_BENCHMARK_STATS_TIME_MS, MICRO_BENCHMARK_STATS_TIME_US, MICRO_BENCHMARK_STATS_TIME_NS }

Unit of measure.


C Data Type: micro_benchmark_stats_value { micro_benchmark_stats_unit unit, double mean, double variance, double std_deviation }

Aggregated statistical values.


C Data Type: micro_benchmark_time_stats_values { size_t total_samples, size_t samples, size_t iterations, micro_benchmark_stats_value iteration_time, micro_benchmark_stats_value sample_time, micro_benchmark_stats_value sample_iterations }

Information sampled during a test case execution.

Note: this type is experimental.



Next: Chronometer Reference, Previous: Meter Reference, Up: Data Collection reference   [Contents][Index]