summaryrefslogtreecommitdiff
path: root/src/common/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timer.c')
-rw-r--r--src/common/timer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/timer.c b/src/common/timer.c
index 2c8236e3d..0eb16c45f 100644
--- a/src/common/timer.c
+++ b/src/common/timer.c
@@ -42,6 +42,12 @@ static int* timer_heap = NULL;
// server startup time
time_t start_time;
+unsigned int calc_times(void)
+{
+ time_t temp = time(NULL);
+
+ return (unsigned int)mktime(localtime(&temp));
+}
/*----------------------------
* Timer debugging