MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_timestamp

Function get_timestamp

src/utils/timestamp.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12#ifdef _WIN32
13double get_timestamp ()
14{
15 FILETIME ft;
16 GetSystemTimePreciseAsFileTime (&ft);
17 int64_t t = ((int64_t)ft.dwHighDateTime << 32L) | (int64_t)ft.dwLowDateTime;
18 return (t - FILETIME_TO_UNIX) / (10.0 * 1000.0 * 1000.0);
19}
20#else
21double get_timestamp ()
22{

Callers 15

read_threadMethod · 0.85
read_threadMethod · 0.85
read_threadMethod · 0.85
read_threadMethod · 0.85
create_adv_connectionMethod · 0.85
read_threadMethod · 0.85
read_threadMethod · 0.85
read_threadMethod · 0.85
calc_timeMethod · 0.85
read_threadMethod · 0.85
read_threadMethod · 0.85
read_thread_impedanceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected