码迷,mamicode.com
首页 >  
搜索关键字:units are seconds si    ( 4698个结果
struct timeval 计时问题
linux编程中,如果用到计时,可以用struct timeval获取系统时间。struct timeval的函数原型如下: struct timeval { __kernel_time_t tv_sec; /* seconds */ __kernel_suseconds_t tv_usec; /*...
分类:其他好文   时间:2014-07-10 14:30:22    阅读次数:334
简单的文本编辑器
#!/usr/bin/env pythonimport wxclass MainWindow(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, si...
分类:其他好文   时间:2014-07-07 17:37:18    阅读次数:142
zoj 3790 Consecutive Blocks(链表重点是思想)
Consecutive Blocks Time Limit: 2 Seconds      Memory Limit: 65536 KB There are N (1 ≤ N ≤ 105) colored blocks (numbered 1 to N from left to right) which are lined up in a row. And the i-th b...
分类:其他好文   时间:2014-07-01 06:51:52    阅读次数:218
Linux struct itimerval用法
先看一段代码 #include #include #include #include #include static int count = 0; void set_timer() { struct itimerval itv; itv.it_value.tv_sec = 3; //timer start after 3 seconds later itv.it...
分类:系统相关   时间:2014-06-30 10:31:41    阅读次数:365
分析Linux磁盘管理与文件系统专题三
1.前言紧接着我的上一篇博客进行磁盘管理操作:http://zhangfengzhe.blog.51cto.com/8855103/1430531我们已经对磁盘进行了分区,信息如下:[root@localhost~]#fdisk-l/dev/sdb Disk/dev/sdb:1073MB,1073741824bytes 255heads,63sectors/track,130cylinders Units=cylindersof16..
分类:系统相关   时间:2014-06-29 21:48:06    阅读次数:420
CreateProcess的使用方法
使用编译器vs2008。第一、第二个參数的使用方法:样例:使用ie打开指定的网页。注意第二个參数是 可运行文件+命令行參数#include "stdafx.h"#include #include int main(int argc, char* argv[]) { STARTUPINFO si...
分类:其他好文   时间:2014-06-27 13:23:37    阅读次数:145
Unity入门
Unity入门 用unity做一个最简单的交互。(相当于Hello World)只要最后能运行就算入门了。 第一步,要先用三维制作软件制作出我们需要的场景。 这儿使用的是Max2012(软件大小3.09G)。 首先设置一下在max使用的长度单位,选择使用米为单位。 设置步骤是Customize---->Units Setup---->System Unit Setup---->下拉选...
分类:其他好文   时间:2014-06-26 10:39:27    阅读次数:694
linux 脚本测试网络速度
example: ./netspeed eth0   1 #!/bin/bash   2   3 INTERVAL="1"  # update interval in seconds   4   5 if [ -z "$1" ]; then   6 echo   7 echo usage: $0 [network-interface]   8 echo   9 echo ...
分类:系统相关   时间:2014-06-25 07:24:00    阅读次数:213
zoj 2112 Dynamic Rankings(主席树&动态第k大)
Dynamic Rankings Time Limit: 10 Seconds      Memory Limit: 32768 KB The Company Dynamic Rankings has developed a new kind of computer that is no longer satisfied with the query like to simply...
分类:其他好文   时间:2014-06-22 17:04:16    阅读次数:182
c c++面试题1
1. 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题)#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL我在这想看到几件事情:1). #define 语法的基本知识(例如:不能以分号结束,括号的使用,等等)2). 懂得预处理...
分类:编程语言   时间:2014-06-22 10:51:29    阅读次数:236
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!