Ignore:
Timestamp:
Dec 10, 2009, 7:04:10 PM (12 years ago)
Author:
charles
Message:

(trunk libT) new utility function tr_timerAddMsec()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r9705 r9709  
    498498    tr_timevalSet( &tv, seconds, microseconds );
    499499    event_add( timer, &tv );
     500}
     501
     502void
     503tr_timerAddMsec( struct event * timer, int msec )
     504{
     505    const int seconds =  msec / 1000;
     506    const int usec = (msec%1000) * 1000;
     507    tr_timerAdd( timer, seconds, usec );
    500508}
    501509
Note: See TracChangeset for help on using the changeset viewer.