[Reconnoiter-devel] [reconnoiter commit] r856 - trunk/src/modules-lua/noit

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Thu Sep 17 23:08:51 EDT 2009


Author: jesus
Date: 2009-09-17 23:08:50 -0400 (Thu, 17 Sep 2009)
New Revision: 856

Modified:
   trunk/src/modules-lua/noit/timeval.lua
Log:
convert to float

Modified: trunk/src/modules-lua/noit/timeval.lua
===================================================================
--- trunk/src/modules-lua/noit/timeval.lua	2009-09-18 00:42:00 UTC (rev 855)
+++ trunk/src/modules-lua/noit/timeval.lua	2009-09-18 03:08:50 UTC (rev 856)
@@ -43,6 +43,10 @@
   return new(base.noit.gettimeofday())
 end
 
+function seconds(self)
+  return self.sec + (self.usec / 1000000.0)
+end
+
 function metat.__add(o1, o2)
   local secs = o1.sec + o2.sec
   local usecs = o1.usec + o2.usec



More information about the Reconnoiter-devel mailing list