Compare observed latency with a target budget and report the latency status.

Latency Budget Reliability Report

latency_budget_reliability_report.c
#include <stdio.h>

int main(void) {
    int observedMs = ;
    int targetMs = 200;
    const char *status = "watch";

    if (observedMs <= targetMs / 2 + 30) {
        status = "fast";
    }

    if (observedMs > targetMs) {
        status = "slow";
    }

    printf("observed=%d\n", observedMs);
    printf("target=%d\n", targetMs);
    printf("status=%s\n", status);
    return 0;
}
#include <stdio.h>

int main(void) {
    int observedMs = ;
    int targetMs = 200;
    const char *status = "watch";

    if (observedMs <= targetMs / 2 + 30) {
        status = "fast";
    }

    if (observedMs > targetMs) {
        status = "slow";
    }

    printf("observed=%d\n", observedMs);
    printf("target=%d\n", targetMs);
    printf("status=%s\n", status);
    return 0;
}
#include <stdio.h>

int main(void) {
    int observedMs = ;
    int targetMs = 200;
    const char *status = "watch";

    if (observedMs <= targetMs / 2 + 30) {
        status = "fast";
    }

    if (observedMs > targetMs) {
        status = "slow";
    }

    printf("observed=%d\n", observedMs);
    printf("target=%d\n", targetMs);
    printf("status=%s\n", status);
    return 0;
}
latency budget The budget gives a fixed target that every observed latency can be compared against.
latency label The label summarizes whether the report is fast, watchful, or slow.