[asycxx-devel] SF.net SVN: asycxx:[46] trunk/src/core.cxx
Status: Alpha
Brought to you by:
joe_steeve
|
From: <joe...@us...> - 2009-04-08 07:46:13
|
Revision: 46
http://asycxx.svn.sourceforge.net/asycxx/?rev=46&view=rev
Author: joe_steeve
Date: 2009-04-08 07:46:06 +0000 (Wed, 08 Apr 2009)
Log Message:
-----------
we use 'asycxx' namespace by default now
From: Joe Steeve <js...@hi...>
Modified Paths:
--------------
trunk/src/core.cxx
Modified: trunk/src/core.cxx
===================================================================
--- trunk/src/core.cxx 2009-04-08 07:45:28 UTC (rev 45)
+++ trunk/src/core.cxx 2009-04-08 07:46:06 UTC (rev 46)
@@ -24,17 +24,16 @@
#include "asycxx-common.h"
#include <asycxx/Error.h>
-h_msecs_t
+using namespace asycxx;
+
+asycxx_msecs_t
GetCurrentTimeStamp (void)
{
int ret;
struct timeval currentTime;
ret = gettimeofday (¤tTime, NULL);
- if (ret != 0)
- {
- THROW (RunTimeError, "%s: reading current system time", strerror(errno));
- }
+ ASSERT ((ret == 0), "%s: reading current system time", strerror(errno));
return ((currentTime.tv_sec * 1000) + (currentTime.tv_usec / 1000));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|