timing: introduce timing functions as a generic feature

Add timing functions and APIs.  This is now used with some of the tests
we have for performance and metrics and will be used whereever timing
informations are needed, for example for tracing, profiling and other
operations where timing info is critical.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Daniel Leung 2020-08-05 12:57:00 -07:00 committed by Maureen Helm
commit 0ffcfa9633
7 changed files with 117 additions and 0 deletions

9
subsys/timing/Kconfig Normal file
View file

@ -0,0 +1,9 @@
# Copyright (c) 2020 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
config TIMING_FUNCTIONS
bool "Timing Functions"
help
When enabled, timing related functions are compiled. This is
useful for gathering timing on code execution.