7fec92cb8af50279addde6897944337cf997912b
1 // SPDX-FileCopyrightText: 2009 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Userspace RCU library - test cycles per loop
12 #define NR_LOOPS 1000000UL
14 static inline void loop_sleep(unsigned long loops
)
22 caa_cycles_t time1
, time2
;
24 time1
= caa_get_cycles();
26 time2
= caa_get_cycles();
27 printf("CPU clock cycles per loop: %g\n", (time2
- time1
) /
This page took 0.061377 seconds and 5 git commands to generate.