added timeToFrame() util function
Unified the Context::schedule usage, always take ownership of the related NodeRef