Browse Source

Add dummy time_freestanding.odin

gingerBill 3 years ago
parent
commit
a9ea590d24
1 changed files with 15 additions and 0 deletions
  1. 15 0
      core/time/time_freestanding.odin

+ 15 - 0
core/time/time_freestanding.odin

@@ -0,0 +1,15 @@
+//+build freestanding
+package time
+
+IS_SUPPORTED :: false
+
+now :: proc() -> Time {
+	return Time{}
+}
+
+sleep :: proc(d: Duration) {
+}
+
+_tick_now :: proc "contextless" () -> Tick {
+	return Tick{}
+}