benchmark/app_kernel: fix useless comment
The comment did not convey anything, as it was a relic from before a previous renaming. Use the SECONDS(x) macro to make everything clearer. Change-Id: Ia757061c4083d7567df5b214326c2cf8b6804fbf Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
b981326ae9
commit
849865046b
1 changed files with 3 additions and 5 deletions
|
@ -41,6 +41,8 @@
|
|||
|
||||
#include "master.h"
|
||||
|
||||
#define SECONDS(x) ((x) * sys_clock_ticks_per_sec)
|
||||
|
||||
char Msg[MAX_MSG];
|
||||
char data_bench[OCTET_TO_SIZEOFUNIT(MESSAGE_SIZE)];
|
||||
|
||||
|
@ -159,12 +161,8 @@ void BenchTask(void)
|
|||
|
||||
WAIT_FOR_USER();
|
||||
|
||||
/*
|
||||
* Make a 2 second delay. sys_clock_ticks_per_sec in this context is
|
||||
* a number of system times ticks in a second.
|
||||
*/
|
||||
if (autorun) {
|
||||
task_sleep(2 * sys_clock_ticks_per_sec);
|
||||
task_sleep(SECONDS(2));
|
||||
}
|
||||
|
||||
output_close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue