summaryrefslogtreecommitdiff
path: root/glcdskin/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcdskin/config.c')
-rw-r--r--glcdskin/config.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/glcdskin/config.c b/glcdskin/config.c
index 518218e..c733427 100644
--- a/glcdskin/config.c
+++ b/glcdskin/config.c
@@ -1,6 +1,8 @@
#include "config.h"
#include "type.h"
+#include <sys/time.h>
+
namespace GLCD
{
@@ -39,4 +41,13 @@ int cSkinConfig::GetTabPosition(int Index, int MaxWidth, const cFont & Font)
return 0;
}
+uint64_t cSkinConfig::Now(void)
+{
+ struct timeval tv;
+
+ gettimeofday(&tv, 0);
+ return (uint64_t)(tv.tv_sec * 1000 + tv.tv_usec / 1000);
+}
+
+
} // end of namespace