CCProfilingTimer* CCProfiler::createAndAddTimerWithName(const char* timerName) { CCProfilingTimer *t = new CCProfilingTimer(); t->initWithName(timerName); m_pActiveTimers->setObject(t, timerName); t->release(); return t; }
CCProfilingTimer* CCProfiler::createAndAddTimerWithName(const char* timerName) { CCProfilingTimer *t = new CCProfilingTimer(); t->initWithName(timerName); m_mActiveTimers.insert(timerName, t); t->release(); return t; }
CCProfilingTimer* CCProfiler::timerWithName(const char *pszTimerName, CCObject *pInstance) { CCProfiler *p = CCProfiler::sharedProfiler(); CCProfilingTimer *t = new CCProfilingTimer(); t->initWithName(pszTimerName, pInstance); p->m_pActiveTimers->addObject(t); t->release(); return t; }