DscGetTime

Universal Driver Documentation
Simple clock routine returns a millisecond counter value. Usefull for measuring the elapsed milliseconds between events. The precision of the clock will vary by operating system. The counter value may reset on some operating systems if the program is run for an extended period of weeks or more.

Table of contents

Function Definition

dscGetTime(DWORD *ms);

Function Parameters

NameDescription
msPointer to number which will hold the counter value

Return Value

Error code or 0.

Usage Example

    DWORD start, now;

    dscGetTime(&start);
    myExtendedOperation();
    dscGetTime(&now);

    printf("Elapsed ms: %ld\n", now - start);


This page was last modified 11:29, 12 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.