]> git.tdb.fi Git - libs/core.git/blob - source/time/rawtime_private.h
Add conversions from timeval/FILETIME to RawTime
[libs/core.git] / source / time / rawtime_private.h
1 #ifndef MSP_TIME_RAWTIME_PRIVATE_H_
2 #define MSP_TIME_RAWTIME_PRIVATE_H_
3
4 #ifdef WIN32
5 #include <windows.h>
6 #else
7 #include <sys/time.h>
8 #endif
9 #include "rawtime.h"
10
11 namespace Msp {
12 namespace Time {
13
14 #ifdef WIN32
15 RawTime filetime_to_rawtime(const FILETIME &);
16 #else
17 timeval rawtime_to_timeval(RawTime);
18 timespec rawtime_to_timespec(RawTime);
19 RawTime timeval_to_rawtime(const timeval &);
20 #endif
21
22 } // namespace Time
23 } // namespace Msp
24
25 #endif