timex.h 250 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __TOOLS_LINUX_ASM_TIMEX_H
  3. #define __TOOLS_LINUX_ASM_TIMEX_H
  4. #include <time.h>
  5. #define cycles_t clock_t
  6. static inline cycles_t get_cycles(void)
  7. {
  8. return clock();
  9. }
  10. #endif // __TOOLS_LINUX_ASM_TIMEX_H