码迷,mamicode.com
首页 >  
搜索关键字:per    ( 2089个结果
关于High-Resolution Timer(了解)
如果一个系统包含高精度性能计数器(HRPC,high-resolution performance counter)则此系统提供高精度定时器。你可以使用API函数QueryPerformanceFrequency来获得HRPC的频率HRPCF,返回值为cps(counts per second)。这...
分类:其他好文   时间:2014-10-12 20:57:08    阅读次数:236
有预处理命令#define声明一个常数,用以表明1年中有多少秒
#define SECOND_PER_YEAR(60*60*24*356)UL (1)#define 不能以分号结束,括号这使用 (2)这个表达式将使一个十六位机的整型数移出,因此要用到长整型符号L,高速编译器这个常数是长整型的 (3)UL(表示无符号长整型)...
分类:其他好文   时间:2014-10-11 23:27:06    阅读次数:409
实现foreach遍历
【实现foreach遍历】 IEnumerable的原始版本存在于System.Collection中。 一个类想要被foreach遍历,需要实现此IEnumerable接口。 1 public class People : IEnumerable 2 { 3 private Per...
分类:其他好文   时间:2014-10-11 23:10:26    阅读次数:239
solrcloud 数据监控
#!/usr/bin/pythonimportjsonimportpycurlimportcStringIOdefwork_url(ip):buf=cStringIO.StringIO()c=pycurl.Curl()c.setopt(c.URL,"http://%s:8983/solr/collection1/admin/mbeans?stats=true&wt=json&_=1409194287592"%ip)c.setopt(c.WRITEFUNCTION,buf.write)c.per..
分类:其他好文   时间:2014-10-10 21:02:54    阅读次数:183
Android屏幕适配原理
几个概念:1) 屏幕密度(dpi) :dot per inch,即每英寸像素数。ldpi(120),mdpi(160),hdpi(240),xhdpi(320)计算方法:以480x854,4.0inch手机为例,其对角线为4.0inch,对角线的像素数为:(480^2 + 854^2)开根号 = 9...
分类:移动开发   时间:2014-10-09 19:17:47    阅读次数:263
计算机的容量和速度
速度以十进制计算1Hz 就是秒分之一1GHz = 1000 * 1000 * 1000 Hz 网络速度哦使用的是bit 为单位所以 4M ADSL 就是 4Mbit Per second, 转化成 KB 就是 0.5Mb/s 512kb/s厂商的硬盘 500G, 它是以10进制计算的, 因为磁盘有间...
分类:其他好文   时间:2014-09-29 17:46:31    阅读次数:127
Java learning notes (1):Basic Knowlege points
Basic Knowlege points:1: it's necessary that there is only one public class in per .java file2: .java file name should better to same as class name3: ...
分类:编程语言   时间:2014-09-28 13:23:52    阅读次数:313
Servlet Threading Model
Servlet Threading ModelThe scalability issues of Java servlets are caused mainly by the server threading model:Thread per connectionThe traditional IO...
分类:其他好文   时间:2014-09-26 03:11:28    阅读次数:271
Architecture of a Highly Scalable NIO-Based Server
一。thread-per-connectionThe thread-per-connection approach uses an exclusive worker thread foreach connection. Within the handling loop, a worker threa...
分类:其他好文   时间:2014-09-25 21:51:07    阅读次数:185
解读Unity中的CG编写Shader系列10——光滑的镜面反射(冯氏着色)
前文完成了最基本的镜面反射着色器,单平行光源下的逐顶点着色(per-vertex lighting),又称为古罗着色(Gouraud shading)。这篇文章作为后续讨论更光滑的镜面反射方式,逐像素着色(per-pixcel lighting),又称为冯氏着色(Phong shading) 逐像素着色Per-Pixel Lighting (冯氏着色Phong Shading) 别把冯氏着色与冯氏反射模型搞混淆了,前问提到了冯氏反射模型,冯氏反射模型是为使计算机模拟接近真实的物体表面光泽提出的模型,即环境...
分类:其他好文   时间:2014-09-24 19:07:57    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!