aboutsummaryrefslogtreecommitdiff
path: root/pw_perf_test/chrono_public_overrides
diff options
context:
space:
mode:
authorBrian Barcenas <bbarcenas@google.com>2022-10-20 21:24:39 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-20 21:24:39 +0000
commitfbd6d5d792e598dbfcb8c1ac5df100c5e9f0aa12 (patch)
tree1fc32f62b01d264272d40e9be99dcd618e27706f /pw_perf_test/chrono_public_overrides
parente2a224838d33ce76aa174a54faeb786492f174ad (diff)
downloadpigweed-fbd6d5d792e598dbfcb8c1ac5df100c5e9f0aa12.tar.gz
pw_perf_test: Added internal timing facade + backend
pw_perf_test now has a backend for which it will use to time the tested components. This update includes an implementation with pw_chrono, which will be used for time-based measurements(nanoseconds). Change-Id: I9a1bb9cf0964caa4d911a1c7c016bab3a41f1e32 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/113890 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Brian Barcenas <bbarcenas@google.com> Reviewed-by: Erik Gilling <konkers@google.com>
Diffstat (limited to 'pw_perf_test/chrono_public_overrides')
-rw-r--r--pw_perf_test/chrono_public_overrides/pw_perf_test_timer_backend/timer.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/pw_perf_test/chrono_public_overrides/pw_perf_test_timer_backend/timer.h b/pw_perf_test/chrono_public_overrides/pw_perf_test_timer_backend/timer.h
new file mode 100644
index 000000000..1e44ac169
--- /dev/null
+++ b/pw_perf_test/chrono_public_overrides/pw_perf_test_timer_backend/timer.h
@@ -0,0 +1,16 @@
+// Copyright 2022 The Pigweed Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+#pragma once
+
+#include "pw_perf_test/internal/chrono_timer_interface.h"