JETime time, double -> long

Time is now counted as a long instead of double to prevent
rounding/precision bugs.