testing getTime() to measure time and calculation frequency