Accelerometer update time
===

i've got this code:

    //Accelerometer 
	public void onSensorChanged(SensorEvent event) {

		// check sensor type
		if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
			

			// assign directions
			float x = event.values[0];
			float y = event.values[1];
			float z = event.values[2];

			Toast.makeText(Festivale.this,
					"X: " + x + "\nY: " + y + "\nZ: " + z, Toast.LENGTH_LONG)
					.show();

			ContentValues x_values = new ContentValues();

			x_values.put("X_Coordinate", x);
			x_values.put("Y_Coordinate", y);
			x_values.put("Z_Coordinate", z);

			SimpleDateFormat dateFormat = new SimpleDateFormat(
					"yyyy-MM-dd HH:mm:ss");
			Date date = new Date(System.currentTimeMillis());

			x_values.put("cur_timestamp", dateFormat.format(date));

			db.insert("Accelerometer", null, x_values);
		}
	}

how can i get an update time for the accelerometer?
fe.: double update = 100; // sec
it has to be changable ;
please help me to complete my code.

