diff --git a/cocos2dx/CCDirector.cpp b/cocos2dx/CCDirector.cpp index f396872146..03278a6f1e 100644 --- a/cocos2dx/CCDirector.cpp +++ b/cocos2dx/CCDirector.cpp @@ -291,7 +291,10 @@ void CCDirector::calculateDeltaTime(void) *m_pLastUpdate = now; } - +float CCDirector::getDeltaTime() +{ + return m_fDeltaTime; +} void CCDirector::setOpenGLView(CCEGLView *pobOpenGLView) { CCAssert(pobOpenGLView, "opengl view should not be null");