summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/event.c b/event.c
index 5e7fb80..69700cd 100644
--- a/event.c
+++ b/event.c
@@ -7,6 +7,7 @@
#include "event.h"
+#include "common.h"
#include <ctype.h>
char* cEventBlock::duptolower(const char *s) {
@@ -17,6 +18,18 @@ char* cEventBlock::duptolower(const char *s) {
return c;
}
+char* cEventBlock::getTimeStamp()
+//Attention: this one will not return the exact UNIX time!
+//Some internal cast seems to blur the word length here.
+//For use in the block plugin this implementation however
+//suffices because it returns something in the millisecond
+//range. If you want to improve please send me an email ;)
+{
+ char *dummy;
+ asprintf(&dummy, "%jd", (intmax_t)time_ms());
+ return dummy;
+}
+
const char* cEventBlock::LastTitle="block_dummy_title3";
const bool* cEventBlock::ReplayingRecording=false;