Coder Social home page Coder Social logo

winx's People

Watchers

James Cloos avatar  avatar

winx's Issues

porting QueryPerformanceCount/QueryPerformanceFrequency to linux

许老大,我这边倒是有个线程的测试性能的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

Enter one-line summary

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:

关于AutoFreeAlloc的可移植性问题

当我试图把在使用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

limitations of WINX virtual property

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

Port WTL to MinGW

good idea!

Original issue reported on code.google.com by xushiweizh on 25 Feb 2008 at 1:44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.