// // SharedUtil.h // hifi // // Created by Stephen Birarda on 2/22/13. // // #ifndef __hifi__SharedUtil__ #define __hifi__SharedUtil__ #include #include #ifdef _WIN32 #include "Systime.h" #else #include #endif double usecTimestamp(timeval *time); double usecTimestampNow(); float randFloat(); unsigned char randomColorValue(int minimum); bool randomBoolean(); void outputBits(unsigned char byte); int numberOfOnes(unsigned char byte); bool oneAtBit(unsigned char byte, int bitIndex); #endif /* defined(__hifi__SharedUtil__) */