moved new date object creation outside time func, makes fractional ms computations irrelevant
oops forgot to change comments and such