diff options
Diffstat (limited to 'event.c')
| -rw-r--r-- | event.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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; |
