Lines Matching refs:timer
7 The Timer sample application is a simple application that demonstrates the use of a timer in a DPDK…
15 The application is located in the ``timer`` sub-directory.
24 $ ./<build_dir>/examples/dpdk-timer -l 0-3 -n 4
37 In addition to EAL initialization, the timer subsystem must be initialized, by calling the rte_time…
39 .. literalinclude:: ../../../examples/timer/main.c
45 After timer creation (see the next paragraph), the main loop is
49 .. literalinclude:: ../../../examples/timer/main.c
57 .. literalinclude:: ../../../examples/timer/main.c
65 In this example, the resolution of the timer is 10 milliseconds.
71 This call to rte_timer_init() is necessary before doing any other operation on the timer structure.
73 .. literalinclude:: ../../../examples/timer/main.c
75 :start-after: Init timer structures. 8<
76 :end-before: >8 End of init timer structures.
81 * The first timer (timer0) is loaded on the main lcore and expires every second.
82 … Since the PERIODICAL flag is provided, the timer is reloaded automatically by the timer subsystem.
85 * The second timer (timer1) is loaded on the next available lcore every 333 ms.
86 … The SINGLE flag means that the timer expires only once and must be reloaded manually if required.
89 .. literalinclude:: ../../../examples/timer/main.c
95 The callback for the first timer (timer0) only displays a message until a global counter reaches 20…
96 In this case, the timer is stopped using the rte_timer_stop() function.
98 .. literalinclude:: ../../../examples/timer/main.c
103 The callback for the second timer (timer1) displays a message and reloads the timer on the next lco…
106 .. literalinclude:: ../../../examples/timer/main.c