diff options
author | Zheng Da <zhengda1936@gmail.com> | 2009-12-11 13:53:30 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2009-12-11 13:53:30 +0100 |
commit | f1a048ea762dd2ea79cad074ec04a0b332a2c221 (patch) | |
tree | 8406098d00b9f7e8b277ca2876be091d8072fad8 /ddekit_test/main.c | |
parent | 3d4eb7565f63ec437a6c74f42cfa092cfb192f16 (diff) |
Test timer.
Diffstat (limited to 'ddekit_test/main.c')
-rw-r--r-- | ddekit_test/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ddekit_test/main.c b/ddekit_test/main.c index c3ca067f..221e5019 100644 --- a/ddekit_test/main.c +++ b/ddekit_test/main.c @@ -1,3 +1,5 @@ +#include <mach.h> + #include "dde.h" #include "ddekit/thread.h" #include "ddekit/printf.h" @@ -5,6 +7,7 @@ #define VERBOSE 1 +boolean_t using_std = 1; /**************** ** Timer test ** @@ -67,6 +70,8 @@ static void timer_test(void) ddekit_printf("added timer: %d\n", twenty_timer); i = ddekit_add_timer(timer_func, (void *)30, jiffies + 30*HZ); ddekit_printf("added timer: %d\n", i); + + ddekit_thread_msleep (10 * 1000); } /******************************** @@ -255,8 +260,8 @@ int main(int argc, char **argv) ddekit_init(); - if (1) memory_test(); - if (0) timer_test(); + if (0) memory_test(); + if (1) timer_test(); return 0; } |