zephyrer / winx Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/winx
Automatically exported from code.google.com/p/winx
[deleted issue]
[deleted issue]
[deleted issue]
许老大,我这边倒是有个线程的测试性能的library,很小的一个
library。
支持windows和linux平台。windows平台使用QueryPerformaceCount,
linux下的实现
对应QueryPerformanceCount
inline unsigned long long int nanotime_ia32(void)
{
unsigned long long int val;
__asm__ __volatile__("rdtsc" : "=A" (val) : );
return(val);
}
对应QueyrPeformanceFrequency
__get_clockfreq(), 这个函数包含在c里面
用ar xv /usr/lib/librt.a get_clockfreq.o可以获取
我们还有一个c++封装,方便的时候也想开源好了,
原始的版本来自于《游戏编程精粹3》1.17
实时的层次性性能评测,我们增加了多线程支持,并且一直��
�
Linux.
Original issue reported on code.google.com by xushiweizh
on 26 Jan 2008 at 9:30
[deleted issue]
[deleted issue]
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Feb 2007 at 3:48
Attachments:
[deleted issue]
[deleted issue]
当我试图把在使用AutoFreeAlloc时,
我们的程序希望能在两个平台(windows/linux)
能够运行.会遇到两个问题
1. Windows的各种类型定义
2. Windows的Heap相关的API
建议: winx的stl扩展部分能否与stl的代码风格,类型尽量兼容.
减少移植代价,这样这些组件适用范围可能更加广泛.
Original issue reported on code.google.com by [email protected]
on 20 Dec 2006 at 3:51
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
template <class T>
class CWindow
{
WINX_THISCLASS(T);
public:
typedef std::string string;
string m_strText;
public:
DEFINE_PROPERTY(string, Text, get_Text, put_Text);
public:
void put_Text(const std::string& value) {
m_strText = value;
}
std::string get_Text() const {
return m_strText;
}
};
class CButton : public CWindow<CButton>
{
public:
std::string get_Text() const {
return "Button";
}
}
在这个例子中使用模板完成属性的静多态机制。那么WINX_THISCL
ASS这个宏的名字看起来不是很合适,建
议改为WINX_PROPIMPLCLASS或更为贴切的名字。
Original issue reported on code.google.com by xushiweizh
on 25 Feb 2008 at 12:56
good idea!
Original issue reported on code.google.com by xushiweizh
on 25 Feb 2008 at 1:44
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
[deleted issue]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.