From d936dc1d097331cddba439dfc71fdb1c8f4205b6 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 3 Apr 2009 11:12:17 +0000 Subject: [PATCH] print the time of the test. --- examples/sky/test-coffee.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/sky/test-coffee.c b/examples/sky/test-coffee.c index 21c89fa32..ccb6f9d32 100755 --- a/examples/sky/test-coffee.c +++ b/examples/sky/test-coffee.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: test-coffee.c,v 1.9 2009/02/27 14:28:02 nvt-se Exp $ + * $Id: test-coffee.c,v 1.10 2009/04/03 11:12:17 nvt-se Exp $ */ /** @@ -309,11 +309,15 @@ end: /*---------------------------------------------------------------------------*/ PROCESS_THREAD(testcoffee_process, ev, data) { + int start; + PROCESS_BEGIN(); + start = clock_seconds(); printf("Coffee format: %d\n", cfs_coffee_format()); printf("Coffee file test: %d\n", coffee_file_test()); printf("Coffee garbage collection test: %d\n", coffee_gc_test()); + printf("Test time: %d seconds\n", clock_seconds() - start); PROCESS_END(); }