Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Functions
testzlib.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include "zlib.h"

Go to the source code of this file.

Functions

void MyDoMinus64 (LARGE_INTEGER *R, LARGE_INTEGER A, LARGE_INTEGER B)
 
void myGetRDTSC32 (LARGE_INTEGER *pbeginTime64)
 
void BeginCountRdtsc (LARGE_INTEGER *pbeginTime64)
 
LARGE_INTEGER GetResRdtsc (LARGE_INTEGER beginTime64, BOOL fComputeTimeQueryPerf)
 
void BeginCountPerfCounter (LARGE_INTEGER *pbeginTime64, BOOL fComputeTimeQueryPerf)
 
DWORD GetMsecSincePerfCounter (LARGE_INTEGER beginTime64, BOOL fComputeTimeQueryPerf)
 
int ReadFileMemory (const char *filename, long *plFileSize, unsigned char **pFilePtr)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ BeginCountPerfCounter()

void BeginCountPerfCounter ( LARGE_INTEGER *  pbeginTime64,
BOOL  fComputeTimeQueryPerf 
)

Definition at line 84 of file testzlib.c.

Referenced by main().

◆ BeginCountRdtsc()

void BeginCountRdtsc ( LARGE_INTEGER *  pbeginTime64)

Definition at line 71 of file testzlib.c.

Referenced by main(), and MyDoMinus64().

◆ GetMsecSincePerfCounter()

DWORD GetMsecSincePerfCounter ( LARGE_INTEGER  beginTime64,
BOOL  fComputeTimeQueryPerf 
)

Definition at line 93 of file testzlib.c.

References MyDoMinus64().

Referenced by main().

◆ GetResRdtsc()

LARGE_INTEGER GetResRdtsc ( LARGE_INTEGER  beginTime64,
BOOL  fComputeTimeQueryPerf 
)

Definition at line 75 of file testzlib.c.

Referenced by main(), and MyDoMinus64().

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ MyDoMinus64()

void MyDoMinus64 ( LARGE_INTEGER *  R,
LARGE_INTEGER  A,
LARGE_INTEGER  B 
)

Definition at line 8 of file testzlib.c.

References BeginCountRdtsc(), BOOL, GetResRdtsc(), and myGetRDTSC32().

Referenced by GetMsecSincePerfCounter().

◆ myGetRDTSC32()

void myGetRDTSC32 ( LARGE_INTEGER *  pbeginTime64)

Definition at line 67 of file testzlib.c.

Referenced by MyDoMinus64().

◆ ReadFileMemory()

int ReadFileMemory ( const char *  filename,
long plFileSize,
unsigned char **  pFilePtr 
)

Definition at line 119 of file testzlib.c.

References malloc(), NULL, ptr, SEEK_END, and SEEK_SET.

Referenced by main().