2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #ifndef OTHERSERVICE_POSIXBASEDOS001LEGACYLIBRARY_POSIXBASEDOS001_CLOCK_CYCLE_API_H_ // NOLINT(build/header_guard)
19 #define OTHERSERVICE_POSIXBASEDOS001LEGACYLIBRARY_POSIXBASEDOS001_CLOCK_CYCLE_API_H_ // NOLINT(build/header_guard)
23 /******************************************************************************/
26 /******************************************************************************/
29 /******************************************************************************/
33 /******************************************************************************/
39 * @file PosixBasedOS001ClockCycleApi.h
40 * @brief \~english This file provides ClockCycle API to get number of clock cycles.
43 /** @addtogroup BaseSystem
46 /** @addtogroup other_service
50 /** @addtogroup posix_based_os001_legacy_library
51 * @ingroup other_service
55 /////////////////////////////////////////////////////////////////////////////////////
56 /// \ingroup ClockCycle
57 /// \~english @par Brief
58 /// Get the number of clock cycles.
59 /// \~english @retval Microsecond
60 /// \~english @par Prerequisite
62 /// \~english @par Change of internal state
64 /// \~english @par Conditions of processing failure
66 /// \~english @par Classification
68 /// \~english @par Type
70 /// \~english @par Detail
72 /// \~english @see None
73 ////////////////////////////////////////////////////////////////////////////////////
74 uint64_t ClockCycle(void);
76 /** @}*/ // end of posix_based_os001_legacy_library
77 /** @}*/ // end of other_service
78 /** @}*/ // end of BaseSystem
83 #endif // OTHERSERVICE_POSIXBASEDOS001LEGACYLIBRARY_POSIXBASEDOS001_CLOCK_CYCLE_API_H_