summaryrefslogtreecommitdiff
path: root/indra/llcommon/timing.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
committerJames Cook <james@lindenlab.com>2007-01-02 08:33:20 +0000
commit420b91db29485df39fd6e724e782c449158811cb (patch)
treeb471a94563af914d3ed3edd3e856d21cb1b69945 /indra/llcommon/timing.h
Print done when done.
Diffstat (limited to 'indra/llcommon/timing.h')
-rw-r--r--indra/llcommon/timing.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/indra/llcommon/timing.h b/indra/llcommon/timing.h
new file mode 100644
index 0000000000..f09fb0f92b
--- /dev/null
+++ b/indra/llcommon/timing.h
@@ -0,0 +1,26 @@
+/**
+ * @file timing.h
+ * @brief Cross-platform routines for doing timing.
+ *
+ * Copyright (c) 2000-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_TIMING_H
+#define LL_TIMING_H
+
+#include <time.h>
+
+#if LL_LINUX || LL_DARWIN
+# include <sys/time.h>
+#endif
+
+
+const F32 SEC_TO_MICROSEC = 1000000.f;
+const U64 SEC_TO_MICROSEC_U64 = 1000000;
+const U32 SEC_PER_DAY = 86400;
+
+// This is just a stub, implementation in lltimer.cpp. This file will be deprecated in the future.
+U64 totalTime(); // Returns current system time in microseconds
+
+#endif