 #if CLIENT
 		Hooks::Remove("DrawUI");
 		Hooks::Remove("Update");
+#endif
+
+		println("Destroyed clock.");
+	}
+
+	void reloaded()
+	{
+		Hooks::Add("Tick", "tick");
+
+#if CLIENT
+		Hooks::Add("Update", "update");
+		Hooks::Add("DrawUI", "draw");
 #endif
 	}
 


void OnLoad()
{
	@t = Clock();
}

class Clock

		{
			print("Time stats: ");
#if CLIENT
			print(time);
			print("s ");
			print((frames/2) + "FPS ");
			frames = 0;
#endif
			println((updates/2) + "UPS");
			updates = 0;

			nextReport = Time::Now + Time::Seconds(2);
		}
	}

