TimingUtilities 1.0.12
A small compiled library for C timing with greater precision than default time.h library.
Loading...
Searching...
No Matches
Timing Functions

Utility functions for timing things. More...

Functions

ULONGLONG getCurrentTimestamp ()
 Get the current timestamp in milliseconds.
 
double getElapsedTime (LONGLONG qstart, LONGLONG qend)
 Calculate the elapsed time between two given timestamps.
 

Variables

const LONGLONG PROCESSOR_FREQUENCY
 The frequency of the processor.
 

Detailed Description

Utility functions for timing things.

Function Documentation

◆ getCurrentTimestamp()

ULONGLONG getCurrentTimestamp ( )

Get the current timestamp in milliseconds.

Returns
The current timestamp in milliseconds.

◆ getElapsedTime()

double getElapsedTime ( LONGLONG qstart,
LONGLONG qend )

Calculate the elapsed time between two given timestamps.

Parameters
qstartThe starting timestamp.
qendThe ending timestamp.
Returns
The elapsed time in seconds.

Variable Documentation

◆ PROCESSOR_FREQUENCY

const LONGLONG PROCESSOR_FREQUENCY
extern

The frequency of the processor.