Slow motion in physics on simulator/devices

How to apply slow motion on simulator or devices? I found link bellow but it only works in browser
http://discuss.cocos2d-x.org/t/slow-and-fast-motion-in-physic/37461/21

cc.director.getPhysicsManager().update() is not invoked on simulator.

float sValue=1.0;//no slow motion
sValue=0.5;//slow motion 50%
Director::getInstance()->getScheduler()->setTimeScale(sValue);

please note this will slow the game even it will effect the UI so if u wanna show game over u need to restart it to 1.0f .pause the game restart it to 1.0 then on resume set it to the value u need .

It does not work. Does this effect to action only?