2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
13 time_lstat(const char* path
)
15 printf("%-60s ...", path
);
17 bigtime_t startTime
= system_time();
19 static const int32 iterations
= 10000;
20 for (int32 i
= 0; i
< iterations
; i
++) {
25 bigtime_t totalTime
= system_time() - startTime
;
26 printf(" %5.3f us/call\n", (double)totalTime
/ iterations
);
33 const char* const paths
[] = {
37 "/boot/develop/headers",
38 "/boot/develop/headers/posix",
39 "/boot/develop/headers/posix/sys",
40 "/boot/develop/headers/posix/sys/stat.h",
44 for (int32 i
= 0; paths
[i
] != NULL
; i
++)