摘要:
首先是要开辟电脑上的共享空间,利用boost的share_memory_object很容易实现接着获取当前时间,由于获得的位UTC时间,北京时间还需要加8小时,最后写入内存。 1 #include "stdafx.h" 2 #include <boost/interprocess/shared_memory_object.hpp> 3 #include <boost/date_time/gregorian/gregorian.hpp> 4 #include <boost/date_time/posix_time/posix_time.hpp&g 阅读全文
posted @ 2012-09-04 23:11
血鱼
阅读(605)
评论(0)
推荐(0)

浙公网安备 33010602011771号