00001 /*======================================================================* 00002 * Copyright (C) 2008 Light Weight Event System * 00003 * All rights reserved. * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the Free Software * 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, * 00018 * Boston, MA 02110-1301 USA. * 00019 *======================================================================*/ 00020 #ifndef __TIME_FUNCTIONS_H 00021 #define __TIME_FUNCTIONS_H 00022 00023 #include <sys/time.h> 00024 #include <time.h> 00025 #include <stdio.h> 00026 00027 #include "lwes_types.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00045 LWES_INT_64 00046 currentTimeMillisLongLong 00047 (void); 00048 00057 void 00058 convertUnixLongLongTimeToTimeval 00059 (LWES_INT_64 timestamp, 00060 struct timeval *t); 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif /* __TIME_FUNCTIONS_H */