Skip to content

Commit ac50b35

Browse files
committed
Update README.md
1 parent 535a7cc commit ac50b35

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,14 @@ __cycleof__(<Description String for the target>, [User Code, see ref 1]) {
102102
103103
Here, [**ref 1**] is a small user code to read the measurement result via a local variable `__cycle_count__`. This User Code is optional. If you don't put anything here, the measured result will be shown with a `__perf_counter_printf__`.
104104
105-
#### **Example 1:** Simple measurement with printf
105+
> [!NOTE]
106+
>
107+
> The first parameter cannot be ignored. If you don't want to give a description string, please pass an empty string i.e. "".
108+
109+
#### **Example 1:** Simple measurement with `printf()`
106110
107111
```c
108-
__cycleof__() {
112+
__cycleof__("") {
109113
foreach(example_lv0_t, s_tItem, ptItem) {
110114
__perf_counter_printf__("Processing item with ID = %d\r\n", _->chID);
111115
}

0 commit comments

Comments
 (0)