Ignore:
Timestamp:
Sep 2, 2016, 4:39:56 AM (9 years ago)
Author:
bird
Message:

updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/nthlp.h

    r2713 r2862  
    3333
    3434#include "ntstuff.h"
     35#include "nttypes.h"
    3536
    3637
     
    6768
    6869
     70static __inline void birdNtTimeToTimeSpec(__int64 iNtTime, BirdTimeSpec_T *pTimeSpec)
     71{
     72    iNtTime -= BIRD_NT_EPOCH_OFFSET_UNIX_100NS;
     73    pTimeSpec->tv_sec  = iNtTime / 10000000;
     74    pTimeSpec->tv_nsec = (iNtTime % 10000000) * 100;
     75}
     76
     77
    6978#endif
    7079
Note: See TracChangeset for help on using the changeset viewer.