MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / getMicroSeconds

Function getMicroSeconds

source/src/ports/MINGW/networkhandler.c:17–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#include "generic_networkhandler.h"
16
17MicroSeconds getMicroSeconds() {
18 LARGE_INTEGER performance_counter;
19 LARGE_INTEGER performance_frequency;
20
21 QueryPerformanceCounter(&performance_counter);
22 QueryPerformanceFrequency(&performance_frequency);
23
24 return (MicroSeconds) (performance_counter.QuadPart * 1000000LL
25 / performance_frequency.QuadPart);
26}
27
28MilliSeconds GetMilliSeconds(void) {
29 return (MilliSeconds) (getMicroSeconds() / 1000ULL);

Callers 2

GetMilliSecondsFunction · 0.85
GetMilliSecondsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected