Problems with pulseIn()

Hello,
Thanks for the replies. I will try using Majenko's code
and let you know what happens. BTW, the scope trace was very jittery and that
may have affected the result

Nick, I've tried editing the post the way you suggest, but I'm doing something wrong.
If I 'copy/paste' I get what you see below; if I try 'copy to forum/paste' I get a flood
of formatting text.

   /* Nov 2012
   
   I have standalone '328 with RS232 as test rig for program to read the anemometer

    The O/P from the anemometer is a manky square wave freq from probably
    50Hz to 500Hz but I need to check on a scope first. 
    The O/Pfrom anemometer opto-slot is squared with a 393
    Use Analogue A0 configured as digital input
    Use pulseIn()  */
    
    
       unsigned long t1,t2;
       int T = 0;
      
       
       void setup()
     { 
        Serial.begin (9600);
        pinMode(A0, INPUT);
     }
       
     void loop()
     {
       delay(100);
       t1 = pulseIn( A0, HIGH );
       delay(1000);
       t2 = pulseIn( A0 ,LOW );
       
       
      Serial.print (" Time = " ); Serial.print ( T ); Serial.print (" mins " );
      Serial.print  (" t1 = "); Serial.print (t1); Serial.print ( ",  usec");
      Serial.print  (" t2 = "); Serial.print (t2); Serial.print ( ",  usec");

      Serial.println ("");
      delay(600000UL);
      T=T+10; 

     }

bruce