]> git.ozlabs.org Git - ccan/blobdiff - ccan/timer/timer.h
timer: increase default span to 5.
[ccan] / ccan / timer / timer.h
index 3bf28d0fbda2cdd8f4e3396bc19928d2b1ac7960..65f849b3dccc22743ed958a6d36ddb04370c2b65 100644 (file)
@@ -5,10 +5,15 @@
 #include <ccan/list/list.h>
 #include <stdint.h>
 
+#ifndef TIMER_GRANULARITY
 /* We divide all nsec values by 1000, reducing it to usec granularity. */
 #define TIMER_GRANULARITY 1000
-/* This gives 16 pointers per level, up to 13 levels deep. */
-#define TIMER_LEVEL_BITS 4
+#endif
+
+#ifndef TIMER_LEVEL_BITS
+/* This gives 32 pointers per level, up to 13 levels deep. */
+#define TIMER_LEVEL_BITS 5
+#endif
 
 struct timers;
 struct timer;