Skip to main content

struct as_decimal_throughput

Declaration

struct as_decimal_throughput { /* full declaration omitted */ };

Description

Wrap a byte-per-second ratio in this to auto-format it as KB/s, MB/s, ...

Member Variables

double bytes_per_sec

Member Function Overview

  • template <typename Rep, typename Period>
    as_decimal_throughput(size_t bytes, const std::chrono::duration<Rep, Period> & duration)

Member Functions

template <typename Rep, typename Period>
as_decimal_throughput(
    size_t bytes,
    const std::chrono::duration<Rep, Period>&
        duration)

Template Parameters

Rep
Period

Parameters

size_t bytes
const std::chrono::duration<Rep, Period>& duration