MGL_lockToFrameRate

Block until a specific time has elapsed since the last call

Declaration

void MGLAPI MGL_lockToFrameRate(
    ulong milliseconds)

Prototype In

mgraph.h

Parameters

milliseconds

Number of milliseconds for delay

 

Description

This function will block the calling thread or process until the specified number of milliseconds have passed since the last call to this function. The first time this function is called, it will return immediately. On subsquent calls it will block until the specified time has elapsed, or it will return immediately if the time has already elapsed.

This function is useful to provide constant time functionality in a program, such as a frame rate limiter for graphics applications etc.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com