implemented getmilliseconds