Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2026 → Rev 2027

/trunk/kernel/test/btree/btree1.c
31,17 → 31,10
#include <adt/btree.h>
#include <debug.h>
 
#ifdef CONFIG_BENCH
#include <arch/cycle.h>
#endif
 
static void *data = (void *) 0xdeadbeef;
 
void test_btree1(void)
char * test_btree1(void)
{
#ifdef CONFIG_BENCH
uint64_t t0 = get_cycle();
#endif
btree_t t;
int i;
 
163,8 → 156,6
btree_remove(&t, 36, NULL);
 
btree_print(&t);
#ifdef CONFIG_BENCH
uint64_t dt = get_cycle() - t0;
printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt);
#endif
return NULL;
}