update example coding style

This commit is contained in:
Gabriel Wang 2021-03-24 11:04:52 +00:00
parent ffbdc8e296
commit f9a27d4ba0

View File

@ -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));