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

/ps/src/dsc/co/mw/mwfwk/cmwfwTime.cc

Go to the documentation of this file.
00001 #include "cmwfwTypes.h"
00002 #include "cmwfwTime.h"
00003 
00004 
00005 #define FILE "source file:cmwfwTime.cc"
00006 #define ID "Contact Steen JENSEN, PS/CO"
00007 #define PROGRAM "Middleware server framework"
00008 #define T(a,b,c,d,e) TRACE(a,"%s(%s): %s %s %s %s\n",myname,FILE,b,c,d,e)
00009 #define E(a,b,c,d) ERROR("%s:%s(%s):ERROR: %s %s %s %s - %s\n",PROGRAM,myname,FILE,a,b,c,d,ID)
00010 //T(CMWFW_TRACE_,"","","","");
00011 //E("","","","");
00012 
00013 
00014 
00015 
00016 
00017 #ifdef CMWFW_WINDOWSNT
00018 #include <sys/timeb.h>
00019 
00020 double cmwfwGetCurrentTime() {
00021   _timeb rightNow;
00022   _ftime(&rightNow);
00023   return rightNow.time * 1000.0 + rightNow.millitm;
00024 }
00025 
00026 #else
00027 //#include <time.h>
00028 #include <tgm/tgm.h>
00029 
00030 double cmwfwGetCurrentTime() {
00031   char* myname = "cmwfwGetCurrentTime";
00032   T(CMWFW_TRACE_CALLS,"Entering","","","");
00033 
00034   T(CMWFW_TRACE_CALLS,"Returning - all ok","","","");
00035   return TgmGetTimeOfDay();
00036 }
00037 
00038 #endif // CMWFW_WINDOWSNT

Generated at Thu May 10 11:29:00 2001 for C.E.R.N.-PSControlsMiddlewareFramework by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001