
 main()
 {
        ...

        unsigned int bit_time;  /* the bit transmission times can have
                                 * 10% tolerance. */
        unsigned int temp_bit;
         
        ...
        ...
  
        temp_bit = count_bit_time(1); //count the transmission time for bit '1'
        bit_time = count_bit_time(0); //count the transmission time for bit '0'

        ...
        ...
 }
