Mercurial > hg > vamp-plugin-sdk
diff vamp-sdk/RealTime.cpp @ 80:e33fa45f0935
* avoid trying to use timeval if building on Windows
author | cannam |
---|---|
date | Tue, 18 Sep 2007 09:39:58 +0000 |
parents | 4412c619b373 |
children | c8b48bc6db3d |
line wrap: on
line diff
--- a/vamp-sdk/RealTime.cpp Thu Sep 06 16:49:50 2007 +0000 +++ b/vamp-sdk/RealTime.cpp Tue Sep 18 09:39:58 2007 +0000 @@ -54,7 +54,10 @@ using std::endl; #include "RealTime.h" + +#ifndef _WIN32 #include "sys/time.h" +#endif namespace Vamp { @@ -96,11 +99,13 @@ return RealTime(msec / 1000, (msec % 1000) * 1000000); } +#ifndef _WIN32 RealTime RealTime::fromTimeval(const struct timeval &tv) { return RealTime(tv.tv_sec, tv.tv_usec * 1000); } +#endif std::ostream &operator<<(std::ostream &out, const RealTime &rt) {