Skip to content

Commit 91b5205

Browse files
committed
Update README.md
1 parent 75b32a8 commit 91b5205

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ For example, when inserting user code, you can read CPI from `__PERF_INFO__.fCPI
245245
```c
246246
void main(void)
247247
{
248-
init_cycle_counter(false);
248+
perfc_init(false);
249249

250250
__perf_counter_printf__("Run coremark\r\n");
251251

@@ -290,6 +290,8 @@ int main (void)
290290
{
291291
int i, n;
292292
293+
...
294+
293295
n = 5;
294296
295297
/* Initialize random number generator */
@@ -349,8 +351,8 @@ This example shows how to use the delta value of `get_system_ticks()` to measure
349351
perf_counter provides the basic timer services for delaying a given period and polling-for-timeout. For example:
350352

351353
```c
352-
delay_ms(1000); /* block the program for 1000ms */
353-
delay_us(50); /* block the program for 50us */
354+
perfc_delay_ms(1000); /* block the program for 1000ms */
355+
perfc_delay_us(50); /* block the program for 50us */
354356

355357
while(1) {
356358
/* return true every 1000 ms */
@@ -566,7 +568,7 @@ void main(void)
566568
*! occupied by user applications or RTOS; otherwise, pass
567569
*! false.
568570
*/
569-
init_cycle_counter(true);
571+
perfc_init(true);
570572

571573
...
572574
while(1) {

0 commit comments

Comments
 (0)