Cstruct stime{ unsigned int seconds:12; unsigned int micro_seconds:20;};
C++ (Qt)inline int GetBit( const char * src, int bitOfs ){ return (src[bitOfs / 8] >> (7 - (bitOfs % 8))) & 1;}
C++ (Qt)inline int GetNBits( const char * src, int bitOfs, int numBits ){ int result = 0; for (int i = 0; i < numBits; ++i) result = (result << 1) | GetBit(src, bitOfs + i); return result;}