print the time of the test.
This commit is contained in:
parent
4f41b30b2b
commit
d936dc1d09
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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)
|
PROCESS_THREAD(testcoffee_process, ev, data)
|
||||||
{
|
{
|
||||||
|
int start;
|
||||||
|
|
||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
|
start = clock_seconds();
|
||||||
printf("Coffee format: %d\n", cfs_coffee_format());
|
printf("Coffee format: %d\n", cfs_coffee_format());
|
||||||
printf("Coffee file test: %d\n", coffee_file_test());
|
printf("Coffee file test: %d\n", coffee_file_test());
|
||||||
printf("Coffee garbage collection test: %d\n", coffee_gc_test());
|
printf("Coffee garbage collection test: %d\n", coffee_gc_test());
|
||||||
|
printf("Test time: %d seconds\n", clock_seconds() - start);
|
||||||
|
|
||||||
PROCESS_END();
|
PROCESS_END();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue