java nano second function test modified