Open shahanshah87 opened 4 years ago
use setInterval at set time for interval is 1000 Then pass getCurrentTime function inside that and you will get current time after each one second. If you set interval to 250. 250*4=1000ms It means you will get 4 time currentTime within a second. Got my point?
is getCurrentTime is dynamic? If it is how can we use it? Thanks in advance