Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

log.cc

Go to the documentation of this file.
00001 /*
00002   svas_server -- virtual World Server of Svas
00003   Copyright (c) 2001, 2002 David Moreno Montero
00004  
00005  
00006   This program is free software; you can redistribute it and/or modify
00007   it under the terms of the GNU General Public License as published by
00008   the Free Software Foundation; either version 2 of the License, or
00009   (at your option) any later version.
00010  
00011   This program is distributed in the hope that it will be useful, but
00012   WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   General Public License for more details.
00015  
00016   You should have received a copy of the GNU General Public License
00017   along with this program; if not, write to the Free Software
00018   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00019   02111-1307, USA.  
00020 
00021 */
00022 
00023 #include <unistd.h>
00024 #include <time.h>
00025 #include <stdio.h>
00026 #include <string>
00027 #include "log.h"
00028 
00029 unsigned long int localTime=0;
00030 
00031 unsigned long int sTime(void){ 
00032   return localTime; 
00033 };
00034 
00035 string timeStamp(){
00036   char str[256];
00037   sprintf(str,"%d::%ld",getpid(),sTime());
00038 
00039   return string(str);
00040 }
00041 
00042 void andTimePasses(){
00043   localTime++;
00044 }

Generated on Mon Jun 17 19:53:44 2002 for Svas Server by doxygen1.2.16