From bd50e8b0f423d50928c129bc884385b50fb1756f Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Thu, 3 Apr 2025 16:29:59 -0600 Subject: Add `uptime.txt` --- .../static/Documentation/harness_uptime_txt.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cmd/sbc_harness/static/Documentation/harness_uptime_txt.txt (limited to 'cmd/sbc_harness/static/Documentation') diff --git a/cmd/sbc_harness/static/Documentation/harness_uptime_txt.txt b/cmd/sbc_harness/static/Documentation/harness_uptime_txt.txt new file mode 100644 index 0000000..1ab86f7 --- /dev/null +++ b/cmd/sbc_harness/static/Documentation/harness_uptime_txt.txt @@ -0,0 +1,17 @@ +NAME + /harness/uptime.txt + +DESCRIPTION + Reading this file gives a text string of the format + `sprintf("%uns\n", uptime_ns)` indicating the harness's uptime + in an integer number of nanoseconds. + +BUGS + Using nanoseconds gives the illusion of more precision than + there actually is; the harness' clock only has microsecond + resolution; the last 3 digits of the returned nanosecond count + will always be 0. + +AUTHOR + Copyright (C) 2025 Luke T. Shumaker + SPDX-License-Identifier: AGPL-3.0-or-later -- cgit v1.2.3-2-g168b