ReactOS 0.4.16-dev-258-g81860b4
Collaboration diagram for Time:

Functions

u32_t sys_now (void)
 

Detailed Description

Function Documentation

◆ sys_now()

u32_t sys_now ( void  )

Returns the current time in milliseconds, may be the same as sys_jiffies or at least based on it. Don't care for wraparound, this is only used for time diffs. Not implementing this function means you cannot use some modules (e.g. TCP timestamps, internal timeouts for NO_SYS==1).

Definition at line 23 of file sys_arch.c.

24{
25 LARGE_INTEGER CurrentTime;
26
27 KeQuerySystemTime(&CurrentTime);
28
29 return (CurrentTime.QuadPart - StartTime.QuadPart) / 10000;
30}
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
static LARGE_INTEGER StartTime
Definition: sys_arch.c:13
LONGLONG QuadPart
Definition: typedefs.h:114