예제 #1
0
    void OnClickButton6()
    {
        if (PersonProto == null)
        {
            PersonProto = new TestPersonProto();
        }
        uint    nCostTime = PersonProto.NormalWriteProto();
        StringA szTips    = new StringA();

        szTips.Format("10W次写入,费时:{0}ms", nCostTime);
        m_text.text = szTips;
    }
예제 #2
0
 void OnClickButton7()
 {
     if (PersonProto != null)
     {
         uint    nCostTime = PersonProto.NormalReadProto();
         StringA szTips    = new StringA();
         szTips.Format("10W次读取,费时:{0}ms", nCostTime);
         m_text.text = szTips;
     }
     else
     {
         m_text.text = "请先执行写入操作, 注意看控制台日志";
     }
 }