platform

来源:互联网 发布:nhj提取软件 编辑:程序博客网 时间:2024/04/28 01:06

#ifndef __PLATFORM_H__

#define __PLATFORM_H__


#include "CCThread.h"

#include "CCPlatformMacros.h"


NS_CC_BEGIN


/**

 * @addtogroup platform

 * @{

 */


struct CC_DLL cc_timeval

{

#ifdef __native_client__

    time_t    tv_sec;        // seconds

#else

    long    tv_sec;        // seconds

#endif

    int tv_usec;    // microSeconds

};


class CC_DLL CCTime

{

public:

    static int gettimeofdayCocos2d(struct cc_timeval *tp, void *tzp);

    static double timersubCocos2d(struct cc_timeval *start, struct cc_timeval *end);

};


// end of platform group

/// @}


NS_CC_END


#endif // __PLATFORM_H__


0 0