1 #ifndef MP4V2_PLATFORM_TIME_TIME_H 2 #define MP4V2_PLATFORM_TIME_TIME_H 3 4 /// @namespace mp4v2::platform::time (private) Time. 5 /// <b>WARNING: THIS IS A PRIVATE NAMESPACE. NOT FOR PUBLIC CONSUMPTION.</b> 6 namespace mp4v2 { namespace platform { namespace time { 7 8 //! type used to represent milliseconds 9 typedef int64_t milliseconds_t; 10 11 //! type used to represent seconds 12 typedef int64_t seconds_t; 13 14 /////////////////////////////////////////////////////////////////////////////// 15 //! 16 //! Get local-time in milliseconds. 17 //! 18 //! getLocalTimeMilliseconds obtains the system's notion of current Greenwich 19 //! time, adjusted according to the current timezone of the host system. 20 //! The time is expressed as an absolute value since midnight (0 hour), 21 //! January 1, 1970. This is commonly referred to as the "epoch". 22 //! 23 //! @return local-time in milliseconds elapsed since the epoch. 24 //! 25 /////////////////////////////////////////////////////////////////////////////// 26 MP4V2_EXPORT milliseconds_t getLocalTimeMilliseconds(); 27 28 /////////////////////////////////////////////////////////////////////////////// 29 //! 30 //! Get local-time in seconds. 31 //! 32 //! getLocalTimeMilliseconds obtains the system's notion of current Greenwich 33 //! time, adjusted according to the current timezone of the host system. 34 //! The time is expressed as an absolute value since midnight (0 hour), 35 //! January 1, 1970. This is commonly referred to as the "epoch". 36 //! 37 //! @return local-time in seconds elapsed since the epoch. 38 //! 39 /////////////////////////////////////////////////////////////////////////////// 40 MP4V2_EXPORT seconds_t getLocalTimeSeconds(); 41 42 /////////////////////////////////////////////////////////////////////////////// 43 //! @} 44 /////////////////////////////////////////////////////////////////////////////// 45 46 }}} // namespace mp4v2::platform::time 47 48 #endif // MP4V2_PLATFORM_TIME_TIME_H 49