summaryrefslogtreecommitdiff
path: root/examples/libc/time.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-03-07 08:34:04 +0800
committerMeco Man <[email protected]>2021-03-07 08:34:04 +0800
commit08af426f01cf0321719c937d29a1d9315a0feab8 (patch)
treecb9c4e5ba1db25c5878b732a2651ec3646efc4d1 /examples/libc/time.c
parentce86058201432e865b8d7c4096b3675642a43a42 (diff)
[example] 格式化整理
Diffstat (limited to 'examples/libc/time.c')
-rw-r--r--examples/libc/time.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/libc/time.c b/examples/libc/time.c
index fa6dee74c8..d9a6cb5b8e 100644
--- a/examples/libc/time.c
+++ b/examples/libc/time.c
@@ -11,14 +11,14 @@
int speed()
{
- int i;
- time_t t;
+ int i;
+ time_t t;
- printf("%d\n", time(0));
- for (i = 0; i < 10000000; ++i)
- t = time(0);
+ printf("%d\n", time(0));
+ for (i = 0; i < 10000000; ++i)
+ t = time(0);
- printf("%d\n", time(0));
- return 0;
+ printf("%d\n", time(0));
+ return 0;
}
FINSH_FUNCTION_EXPORT(speed, speed test);