need to use cross platform usleep() from platforum/timeutils.h rather than windows only Sleep()