⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgpmilliseconds.c

📁 PGP8.0源码 请认真阅读您的文件包然后写出其具体功能
💻 C
字号:
/*____________________________________________________________________________
	Copyright (C) 2002 PGP Corporation
	All rights reserved.

	$Id: pgpMilliseconds.c,v 1.8 2002/08/06 20:10:34 dallen Exp $
____________________________________________________________________________*/
#include "pgpPFLConfig.h"
#include "pgpDebug.h"

#ifdef __MVS__
#include <time.h>
#else
#if PGP_MACINTOSH
#include <OpenTransport.h>
#elif PGP_WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#elif PGP_UNIX
#include <sys/param.h>
	#if PGP_UNIX_DARWIN
	#include <sys/times.h>
	#endif
#endif
#endif

#include "pgpMilliseconds.h"

	PGPUInt32
PGPGetMilliseconds()
{
	/* Returns milliseconds since system startup */
#if PGP_MACINTOSH
	OTTimeStamp timeStamp;
	
	OTGetTimeStamp( &timeStamp );
	return OTTimeStampInMilliseconds( &timeStamp );
#elif PGP_WIN32
	return GetTickCount();
#elif PGP_UNIX
	/*
	 * times() returns clock ticks since system boot.
	 * HZ is clock ticks per second.
	 */
#if PGP_UNIX_DARWIN
	struct tms tp;
	return times( &tp ) / CLK_TCK * 1000;
#else
	return times( NULL ) / HZ * 1000;
#endif
#else
	pgpAssert( 0 );	/* not implemented */
#endif
}


/*__Editor_settings____

	Local Variables:
	tab-width: 4
	End:
	vi: ts=4 sw=4
	vim: si
_____________________*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -