Diff
Not logged in

Differences From Artifact [b2652cb425]:

To Artifact [5a6b5eba30]:


348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363

static void
SerialBlockTime(
    int msec)			/* milli-seconds */
{
    Tcl_Time blockTime;

    blockTime.sec  =  msec / 1000;
    blockTime.usec = (msec % 1000) * 1000;
    Tcl_SetMaxBlockTime(&blockTime);
}

/*
 *----------------------------------------------------------------------
 *
 * SerialGetMilliseconds --







|
<







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 = (long long)msec * 1000;

    Tcl_SetMaxBlockTime(&blockTime);
}

/*
 *----------------------------------------------------------------------
 *
 * SerialGetMilliseconds --
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
static unsigned int
SerialGetMilliseconds(void)
{
    Tcl_Time time;

    Tcl_GetTime(&time);

    return (time.sec * 1000 + time.usec / 1000);
}

/*
 *----------------------------------------------------------------------
 *
 * SerialSetupProc --
 *







|







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 / 1000;
}

/*
 *----------------------------------------------------------------------
 *
 * SerialSetupProc --
 *