程序人生

Linux计算时间间隔

Linux计算时间间隔: #include #include /*int gettimeofday(struct timeval *tv, struct timezone *tz); int settimeofday(const...

程序人生

Linux+gcc下指定对齐方式

环境:Linux程序中可以指定变量在内存中的对齐方式,按照字节对齐、4字节对齐、8字节对齐等。使用如下命令对:#p...