Hello, I need a program to sleep in several microseconds, but neither nanosleep() nor usleep() can work. They sleep at least 10ms. So it seems the only option is to use loop and Linux kernel does so as well for udelay() and ndelay(). Then I need high resolution timing. I think I can use TSC, but it's better to be system independent. There is clock_gettime() in POSIX, but surprisingly it's not implemented in glibc in Hurd. Any suggestions?
Best regards, Zheng Da