glfw: only keep test window open for 100ms

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-16 17:09:23 -07:00
parent d9797481d2
commit 5f4fb8b400

View file

@ -130,7 +130,7 @@ pub fn basicTest() !void {
} }
var start = std.time.milliTimestamp(); var start = std.time.milliTimestamp();
while (std.time.milliTimestamp() < start + 3000 and c.glfwWindowShouldClose(window) != c.GLFW_TRUE) { while (std.time.milliTimestamp() < start + 100 and c.glfwWindowShouldClose(window) != c.GLFW_TRUE) {
c.glfwPollEvents(); c.glfwPollEvents();
} }