changed stopwatch to nanoseconds for further accuracy later on