summaryrefslogtreecommitdiff
path: root/lib/utility/Clock.cs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utility/Clock.cs')
-rw-r--r--lib/utility/Clock.cs72
1 files changed, 36 insertions, 36 deletions
diff --git a/lib/utility/Clock.cs b/lib/utility/Clock.cs
index 522a0bd..1caaff5 100644
--- a/lib/utility/Clock.cs
+++ b/lib/utility/Clock.cs
@@ -1,36 +1,36 @@
-using System;
-
-namespace gorilla.utility
-{
- public static class Clock
- {
- private static Func<DateTime> time_provider;
-
- static Clock()
- {
- reset();
- }
-
- public static Date today()
- {
- return time_provider();
- }
-
- public static DateTime now()
- {
- return time_provider();
- }
-
-#if DEBUG
- public static void change_time_provider_to(Func<DateTime> new_time_provider)
- {
- if (new_time_provider != null) time_provider = new_time_provider;
- }
-#endif
-
- public static void reset()
- {
- time_provider = () => DateTime.Now;
- }
- }
-} \ No newline at end of file
+using System;
+
+namespace jive.utility
+{
+ public static class Clock
+ {
+ private static Func<DateTime> time_provider;
+
+ static Clock()
+ {
+ reset();
+ }
+
+ public static Date today()
+ {
+ return time_provider();
+ }
+
+ public static DateTime now()
+ {
+ return time_provider();
+ }
+
+#if DEBUG
+ public static void change_time_provider_to(Func<DateTime> new_time_provider)
+ {
+ if (new_time_provider != null) time_provider = new_time_provider;
+ }
+#endif
+
+ public static void reset()
+ {
+ time_provider = () => DateTime.Now;
+ }
+ }
+}