/******************************************************************************
 jTime.h

	Augments time.h

	Copyright © 1995 by John Lindal. All rights reserved.

 ******************************************************************************/

#ifndef _H_jTime
#define _H_jTime

#include <time.h>
#include <limits.h>

#if defined _J_UNIX && SIZEOF_LONG == 4
	#define J_TIME_T_MAX LONG_MAX
#elif defined _J_UNIX && SIZEOF_INT == 4
	#define J_TIME_T_MAX INT_MAX
#elif defined __MWERKS__
	#define J_TIME_T_MAX ULONG_MAX
#else
	figure out what to do!
#endif

#ifndef CLOCKS_PER_SEC
#define CLOCKS_PER_SEC 1000000		// not declared in Sun headers
#endif

class JString;

void JWait(const double delta);

JString JGetTimeStamp();
JString JConvertToTimeStamp(const time_t t);

#endif
