add function to retrieve time from GLFW

This commit is contained in:
2025-02-21 08:49:46 +00:00
parent c81ca5dcf3
commit 7ad521e444
2 changed files with 5 additions and 0 deletions

View File

@@ -51,3 +51,7 @@ void setClipboardString (GLFWwindow *window, const char *copyString) {
glfwSetClipboardString(window, copyString);
}
double getTime() {
return glfwGetTime();
}

View File

@@ -18,6 +18,7 @@ struct
(* GLFW functions. *)
val init = _import "init" public : unit -> unit;
val getTime = _import "getTime" public : unit -> real;
val windowHint = _import "windowHint" public : int * int -> unit;
val createWindow =
_import "createWindow" public : int * int * string -> window;