Exemplo n.º 1
0
 //设置为时钟,以当前系统时间戳开始
 public void UF_SetAsClock(string _format)
 {
     UF_SetAsTimer((long)GTime.UF_GetSystemSeconds(), _format, null);
     m_ISide    = 1;
     m_IsOver   = false;
     m_IsNormal = false;
 }
Exemplo n.º 2
0
 public static void UF_TrackNetProtol(int protoCode, int size, int corCode, int state = 0)
 {
     if (!IsActive)
     {
         return;
     }
     if (state == 0)
     {
         UF_TrackMsg(TRACK_NET_PROTO, (int)GTime.UF_GetSystemSeconds(), string.Format("[{0}] <color=yellow>Send-> {1} | size: {2} | corcode:{3}</color>", GTime.UF_GetLongTimeString(), protoCode, size, corCode));
     }
     else
     {
         UF_TrackMsg(TRACK_NET_PROTO, (int)GTime.UF_GetSystemSeconds(), string.Format("[{0}] <color=cyan>Receive-> {1} | size: {2} | corcode:{3}</color>", GTime.UF_GetLongTimeString(), protoCode, size, corCode));
     }
 }