2013年12月24日

taglist安装

摘要: 注意:taglist依赖于ctags,所以要先装ctags,否则taglist装了也没法用!1、首先安装ctags1)ubuntu安装sudo apt-get install exuberant-ctags2)centos安装wget http://prdownloads.sourceforge.net/ctags/ctags-5.8-1.i386.rpm -P /usr/local/srcrpm -Uvh /usr/local/src/ctags-5.8-1.i386.rpm2、安装taglist下载taglist_42.zip地址:http://vim.sourceforge.net/sc 阅读全文

posted @ 2013-12-24 17:08 略过天涯 阅读(575) 评论(0) 推荐(0) 编辑

LINUX 代码运行时间计算

摘要: clock_gettime比gettimeofday更加精确简单做了一下测试#include#include#define MILLION 1000000int main(void){ struct timespec tpstart; struct timespec tpend; long timedif; clock_gettime(CLOCK_MONOTONIC, &tpstart); clock_gettime(CLOCK_MONOTONIC, &tpend); timedif = MILLION*(tpend.tv_sec-tpstart.tv_sec)+(tpend. 阅读全文

posted @ 2013-12-24 14:59 略过天涯 阅读(958) 评论(0) 推荐(0) 编辑

导航