How much delay needed between GPIO ON/OFF?

Hello,
I want to switch output to create a small pulse. So currently I’m doing this way

Gpio_SetLevel(hGpio, io, ioHigh);
Sleep(1);
Gpio_SetLevel(hGpio, io, ioLow);

But instead can i do like this?:

Gpio_SetLevel(hGpio, io, ioHigh);
Gpio_SetLevel(hGpio, io, ioLow);

Dear @kshan
There’s a simple answer: Yes, you can, there’s no delay required between the two operations.
Best regards, Andy