mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-02-07 19:34:18 +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
|
//! demo of using clock() in timer.h
|
||||||
do {
|
do {
|
||||||
clock_t tStart = clock();
|
clock_t tStart = clock();
|
||||||
safe_atom_code()
|
safe_atom_code() {
|
||||||
{
|
|
||||||
printf("no interrupt \r\n");
|
printf("no interrupt \r\n");
|
||||||
}
|
}
|
||||||
printf("used clock cycle: %d", (int32_t)(clock() - tStart));
|
printf("used clock cycle: %d", (int32_t)(clock() - tStart));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user