ReactOS 0.4.16-dev-300-g2aadf2e
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
static PLARGE_INTEGER Time
Definition: time.c:105
uint32_t ULONG
Definition: typedefs.h:59
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:1313

Referenced by SbDspReset().