From 372b71e5d7099373a20b14459182f9a3a05dbbba Mon Sep 17 00:00:00 2001 From: zephyrus Date: Mon, 17 Mar 2008 15:03:03 +0000 Subject: - Clean up of calc_times function. - Moved to timer.c/h because it's used in both map and char servers. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12382 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/timer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/common/timer.c') 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 -- cgit v1.2.3-70-g09d2