diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-17 15:03:03 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-17 15:03:03 +0000 |
commit | 372b71e5d7099373a20b14459182f9a3a05dbbba (patch) | |
tree | a53255abc00fe17d0b870d368cb0a7bed5aa2aa2 /src/common/timer.c | |
parent | a0d17427e9b773d175aca334f20fcffd56edf5d9 (diff) | |
download | hercules-372b71e5d7099373a20b14459182f9a3a05dbbba.tar.gz hercules-372b71e5d7099373a20b14459182f9a3a05dbbba.tar.bz2 hercules-372b71e5d7099373a20b14459182f9a3a05dbbba.tar.xz hercules-372b71e5d7099373a20b14459182f9a3a05dbbba.zip |
- 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
Diffstat (limited to 'src/common/timer.c')
-rw-r--r-- | src/common/timer.c | 6 |
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 |