This function sets a PITIMESTAMP structure to the current time. A passed flag directs the function to include the sub-second time portion.
Visual Basic format
Declare Sub pitm_setcurtime Lib "piapi32.dll" (
time0 As PITimeStamp,
void PIPROC pitm_setcurtime(
PITIMESTAMP PIPTR *timestamp,
Structure containing timestamp.
If zero, fractions of one second will not be included in the timestamp. If non-zero, the subsecond portion will be included.