Changeset 2862 for trunk/src/lib/nt/nthlp.h
- Timestamp:
- Sep 2, 2016, 4:39:56 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/nthlp.h
r2713 r2862 33 33 34 34 #include "ntstuff.h" 35 #include "nttypes.h" 35 36 36 37 … … 67 68 68 69 70 static __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 69 78 #endif 70 79
Note:
See TracChangeset
for help on using the changeset viewer.