ios - Any idea on how to "slow down time" with an NSTimer? -


i created timer, , wondering if @ possible make timer go slower when reaches second: 1..2..3..4..4.1..4.2.

for example, timer increasing 1 second, @ 4 seconds, time slows down showing milliseconds.

if(i = 4) {  } 

it depends on want. of course, can't slow down time, can simulate it. example, check how time has passed. if 1, 2, 3 seconds, nslog 1, 2, 3. when 4 seconds has passed, start logging milliseconds. e.g.

if (i < 4) { nslog(@"%d", i); } else { nslog(@"4.%d", - 4); } 

sure, logging can substituted whatever need.

p.s. answer in objective-c, changes nothing.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -

Listeners to visualise results of load test in JMeter -