ReactOS 0.4.15-dev-5664-g3bf4ef6
time.c File Reference
#include <ntddk.h>
Include dependency graph for time.c:

Go to the source code of this file.

Functions

VOID SleepMs (ULONG Milliseconds)
 
ULONG QuerySystemTimeMs ()
 

Function Documentation

◆ QuerySystemTimeMs()

ULONG QuerySystemTimeMs ( )

Definition at line 39 of file time.c.

40{
42
44
45 Time.QuadPart /= 10000;
46
47 return (ULONG) Time.QuadPart;
48}
#define KeQuerySystemTime(t)
Definition: env_spec_w32.h:570
unsigned int ULONG
Definition: retypes.h:1
static PLARGE_INTEGER Time
Definition: time.c:105
LONGLONG QuadPart
Definition: typedefs.h:114

Referenced by SbDspReset(), SbDspWaitToRead(), and SbDspWaitToWrite().

◆ SleepMs()

VOID SleepMs ( ULONG  Milliseconds)

Definition at line 28 of file time.c.

29{
31
32 Period.QuadPart = Milliseconds;
33 Period.QuadPart *= -10000;
34
36}
#define FALSE
Definition: types.h:117
#define KeDelayExecutionThread(mode, foo, t)
Definition: env_spec_w32.h:484
#define KernelMode
Definition: asm.h:34
_In_ LARGE_INTEGER _In_ ULONG Period
Definition: kefuncs.h:1327

Referenced by SbDspReset().