MCPcopy Create free account
hub / github.com/clMathLibraries/clBLAS / conv2nanosec

Function conv2nanosec

src/tests/timer.c:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <windows.h>
23
24nano_time_t
25conv2nanosec(nano_time_t t)
26{
27 LARGE_INTEGER count;
28
29 if (QueryPerformanceFrequency(&count) == FALSE) {
30 return 0;
31 }
32 t = (t * 1000000)/count.QuadPart;
33
34 return (nano_time_t)(t * 1000);
35}
36
37nano_time_t
38conv2microsec(nano_time_t t)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected