摘要:
转自:http://blog.chinaunix.net/uid-21275705-id-224360.html Count the number of bits that are on in an unsigned integer(计算一个无符整数中1Bit的个数)-- (1) 计算一个无符号整数 阅读全文
摘要:
这个库通过表os实现 os.clock () 功能:返回一个程序使用CPU时间的一个近似值 例如: 复制代码代码如下: local x = os.clock(); print(os.clock()) local s = 0; for i = 1, 100000000 do s = s + i; en 阅读全文