Speed of floating point operations

Optimised out again -

  uint16_t time;
  TCNT1 = 0;
     10a:	e4 e8       	ldi	r30, 0x84	; 132
     10c:	f0 e0       	ldi	r31, 0x00	; 0
     10e:	11 82       	std	Z+1, r1	; 0x01
     110:	10 82       	st	Z, r1

  fresult = fnumber1 / fnumber2;
  
  time = TCNT1;
     112:	e0 80       	ld	r14, Z
     114:	f1 80       	ldd	r15, Z+1	; 0x01
   
  Serial.print("delay: ");

Can't understand why, your printing it out later in the code so it shouldn't be getting optimized out, but this suggests it is.

disassembled like so -

Duane B

rcarduino.blogspot.com