File:  [MW Coherent from dump] / coherent / f / usr / include / common / _clktck.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

#ifndef	__COMMON__CLKTCK_H__
#define	__COMMON__CLKTCK_H__

/*
 * This internal header file is intended as the sole point of definition for
 * the ISO C constant "CLOCKS_PER_SEC" and the related POSIX.1 constant
 * CLK_TCK.
 */

#include <common/feature.h>

#if	__BORLANDC__

#define	CLK_TCK			18.2
#define	CLOCKS_PER_SEC		18.2

#elif	__GNUDOS__

#define	CLK_TCK			18.2
#define	CLOCKS_PER_SEC		18.2

#elif	__COHERENT__ && ! _SYSV4

#define	CLK_TCK			100
#define	CLOCKS_PER_SEC		100

#elif	__COHERENT__ && _SYSV4

#include <common/ccompat.h>

#define	CLK_TCK			1000000
#define	CLOCKS_PER_SEC		__sysconf (3)

__EXTERN_C__	long		__sysconf	PROTO ((int _name));

#else

# error The clock rate is not known for this system

#endif


#endif	/* ! defined (__COMMON__CLKTCK_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.