FACT++  1.0
int dic_get_timestamp ( unsigned  serv_id,
int *  secs,
int *  milisecs 
)

Definition at line 984 of file dic.c.

References Current_server, id_get_ptr(), SRC_DIC, and dic_serv::time_stamp.

Referenced by dic_find_server_conns(), DimInfo::getTimestamp(), Java_dim_DimInfo_getTimestamp(), Java_dim_DimInfo_getTimestampMillisecs(), print_service_formatted(), and rout().

985 {
986  register DIC_SERVICE *servp;
987 
988  DISABLE_AST
989  *secs = 0;
990  *milisecs = 0;
991  if( serv_id == 0 )
992  {
993  if(Current_server)
994  servp = Current_server;
995  else
996  {
997  ENABLE_AST
998  return(-1);
999  }
1000  }
1001  else
1002  {
1003  servp = (DIC_SERVICE *)id_get_ptr(serv_id, SRC_DIC);
1004  }
1005  ENABLE_AST
1006  if(servp->time_stamp[1])
1007  {
1008  *secs = servp->time_stamp[1];
1009  if(((unsigned)servp->time_stamp[0] & 0xFFFF0000) == 0xc0de0000)
1010  *milisecs = servp->time_stamp[0] & 0x0000FFFF;
1011  else
1012  *milisecs = servp->time_stamp[0];
1013  return(1);
1014  }
1015  else
1016  {
1017 /*
1018  *secs = 0;
1019  *milisecs = 0;
1020 */
1021  return(0);
1022  }
1023 }
int time_stamp[2]
Definition: dim.h:479
void * id_get_ptr(int id, SRC_TYPES type)
Definition: conn_handler.c:184
static DIC_SERVICE * Current_server
Definition: dic.c:43
Definition: dim.h:457
int serv_id
Definition: demo_server.c:5

+ Here is the call graph for this function:

+ Here is the caller graph for this function: