348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
|
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
-
+
-
|
static void
SerialBlockTime(
int msec) /* milli-seconds */
{
Tcl_Time blockTime;
blockTime.sec = msec / 1000;
blockTime = (long long)msec * 1000;
blockTime.usec = (msec % 1000) * 1000;
Tcl_SetMaxBlockTime(&blockTime);
}
/*
*----------------------------------------------------------------------
*
* SerialGetMilliseconds --
|
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
|
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
-
+
|
static unsigned int
SerialGetMilliseconds(void)
{
Tcl_Time time;
Tcl_GetTime(&time);
return (time.sec * 1000 + time.usec / 1000);
return time / 1000;
}
/*
*----------------------------------------------------------------------
*
* SerialSetupProc --
*
|