MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / glfwGetTime

Function glfwGetTime

src/custom/glfw.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102GLFWAPI double glfwGetTime(void)
103{
104 CardinalPluginContext* const context = static_cast<CardinalPluginContext*>(APP);
105 DISTRHO_SAFE_ASSERT_RETURN(context != nullptr, 0.0);
106 DISTRHO_SAFE_ASSERT_RETURN(context->tlw != nullptr, 0.0);
107
108 return context->tlw->getApp().getTime();
109}
110
111GLFWAPI const char* glfwGetKeyName(const int key, int)
112{

Callers 1

drawFramebufferCommonMethod · 0.50

Calls 1

getTimeMethod · 0.80

Tested by

no test coverage detected