How to calculate machine time in basic code?
Ex.
Used 4 Mhz

If porta.0 =1 then
Portb.1=1
Else
Portb.2=1
endif