Files
o3de/Code/Tools/HLSLCrossCompiler/offline/timer.h
T
2021-04-20 12:53:46 -05:00

30 lines
522 B
C

// Modifications copyright Amazon.com, Inc. or its affiliates
// Modifications copyright Crytek GmbH
#ifndef TIMER_H
#define TIMER_H
#ifdef _WIN32
#include <Windows.h>
#else
#include <sys/time.h>
#endif
typedef struct
{
#ifdef _WIN32
LARGE_INTEGER frequency;
LARGE_INTEGER startCount;
LARGE_INTEGER endCount;
#else
struct timeval startCount;
struct timeval endCount;
#endif
} Timer_t;
void InitTimer(Timer_t* psTimer);
void ResetTimer(Timer_t* psTimer);
double ReadTimer(Timer_t* psTimer);
#endif