removed debug prints
time is being passed as  milliseconds but the method was expecting it to be mirosecond. So removed divied by 1000 to accept milliseconds