Add high-resolution timekeeping functions (primarily for benchmarking).
[bluesky.git] / bluesky / bluesky.h
index f37a537..e141dd3 100644 (file)
@@ -104,6 +104,10 @@ typedef struct {
 /* Timestamp, measured in microseconds since the Unix epoch. */
 typedef int64_t bluesky_time;
 
+/* High-resolution timer, measured in nanoseconds. */
+typedef int64_t bluesky_time_hires;
+bluesky_time_hires bluesky_now_hires();
+
 /* In-memory representation of an inode within a Blue Sky server.  This
  * corresponds roughly with information that is committed to persistent
  * storage.  Locking/refcounting rules: