nanoseconds

I want to send out one bit on the serial port with the precision in nanoseconds. Is there any functions similar to QueryPerformanceCounter() and QueryPerformanceFrequency() in windows? I use the NAgetCpuClkFreq() as I want to get the Frequency of the CPU. I can’t use the NATotalTicks(), since it is non-accurate. any ideas ? // Dan