third_party/inchi/INCHI_BASE/src/ichicano.c
long InchiTimeMsecDiff( INCHI_CLOCK *ic, inchiTime *TickEnd, inchiTime *TickStart )
{
    long delta;
    if (!TickEnd || !TickStart)
    {
        return 0;
    }
    if (TickEnd->clockTime >= TickStart->clockTime)
    {
        delta = (long) ( TickEnd->clockTime - TickStart->clockTime );
        delta *= 1000;
        delta += TickEnd->millitime - TickStart->millitime;
    }
    else
    {
        delta = -(long) ( TickStart->clockTime - TickEnd->clockTime );
        delta *= 1000;
        delta += TickEnd->millitime - TickStart->millitime;
    }
    return delta;
}
/******** returns difference TickEnd - TickStart in milliseconds **********/
returns difference TickEnd - TickStart in milliseconds
returns difference TickEnd - TickStart in milliseconds
long InchiTimeMsecDiff( INCHI_CLOCK *ic, inchiTime *TickEnd, inchiTime *TickStart )
{
    long delta;
    if (!TickEnd || !TickStart)
    {
        return 0;
    }
    if (TickEnd->clockTime >= TickStart->clockTime)
    {
        delta = (long) ( TickEnd->clockTime - TickStart->clockTime );
        delta *= 1000;
        delta += TickEnd->millitime - TickStart->millitime;
    }
    else
    {
        delta = -(long) ( TickStart->clockTime - TickEnd->clockTime );
        delta *= 1000;
        delta += TickEnd->millitime - TickStart->millitime;
    }
    return delta;
}
long InchiTimeMsecDiff ( INCHI_CLOCK * ic , inchiTime * TickEnd , inchiTime * TickStart ) { long delta ; if ( ! TickEnd || ! TickStart ) { return 0 ; } if ( TickEnd -> clockTime >= TickStart -> clockTime ) { delta = ( long ) ( TickEnd -> clockTime - TickStart -> clockTime ) ; delta *= 1000 ; delta += TickEnd -> millitime - TickStart -> millitime ; } else { delta = - ( long ) ( TickStart -> clockTime - TickEnd -> clockTime ) ; delta *= 1000 ; delta += TickEnd -> millitime - TickStart -> millitime ; } return delta ; }
returns difference TickEnd - TickStart in milliseconds
returns difference TickEnd - TickStart in milliseconds