#if !defined(GRANNY_SYSTEM_CLOCK_H)
#include "header_preamble.h"
// ========================================================================
// $File: //jeffr/granny/rt/granny_system_clock.h $
// $DateTime: 2006/10/16 14:57:23 $
// $Change: 13583 $
// $Revision: #7 $
//
// (C) Copyright 1999-2006 by RAD Game Tools, All Rights Reserved.
// ========================================================================

#if !defined(GRANNY_NAMESPACE_H)
#include "granny_namespace.h"
#endif

#if !defined(GRANNY_TYPES_H)
#include "granny_types.h"
#endif

BEGIN_GRANNY_NAMESPACE EXPGROUP(ClockGroup);

EXPTYPE_EPHEMERAL struct system_clock
{
    uint32 Data[4];
};

EXPAPI GS_MODIFY void GetSystemSeconds(system_clock* Result);
EXPAPI GS_READ real32 GetSecondsElapsed(system_clock const &StartClock,
                                        system_clock const &EndClock);

// Not yet exported pending tests...
void RequeryTimerFrequency();


EXPAPI GS_READ void SleepForSeconds(real32 Seconds);

END_GRANNY_NAMESPACE;

#include "header_postfix.h"
#define GRANNY_SYSTEM_CLOCK_H
#endif
