Hi Hideya,
As is the case with many programming questions, there are several ways to go about solving this one. The solution I have in mind is to poll the digital input line for a transition from low to high. The simplest way to do this would be to use a loop with a shift register to store the previous digital input value. When the current digital input value is greater than the previous value, you can get the tick count (microsecond resolution sounds like it would be sufficient). You can then do that sequence of operations a second time. The difference between these two tick counts can be used as the input to the wait (microsecond) function. After that you can send your digital output pulse.
Best regards,
David H.
Systems Engineer
National Instruments