platform

#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__


posted @ 2014-05-23 10:31  sssssnian  阅读(300)  评论(0编辑  收藏  举报