look for nanosleep in librt, some Unix flavours have it there