mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
update example coding style
This commit is contained in:
parent
ffbdc8e296
commit
f9a27d4ba0
@ -97,8 +97,7 @@ int main (void)
|
||||
//! demo of using clock() in timer.h
|
||||
do {
|
||||
clock_t tStart = clock();
|
||||
safe_atom_code()
|
||||
{
|
||||
safe_atom_code() {
|
||||
printf("no interrupt \r\n");
|
||||
}
|
||||
printf("used clock cycle: %d", (int32_t)(clock() - tStart));
|
||||
|
Loading…
x
Reference in New Issue
Block a user