To estimate the database's effective!
来源:互联网 发布:算法的国内现状 编辑:程序博客网 时间:2024/05/16 11:51
Use the System.currentTimeMillis() to estimate the database's effetive!
Code:
Timestamp st=new Timestamp(System.currentTimeMillis());
customer = (CustomerInfo) sqlMapSE.queryForObject("queryCustomerByname", userName);
Timestamp et=new Timestamp(System.currentTimeMillis());
try
{
out.write("1: queryCustomerByname "+(et.getTime()-st.getTime())+" ");
out.write("/r/n");
out.flush();
}
catch(Exception e)
{
e.printStackTrace();
}
or more simple:
long st=System.currentTimeMillis();
List list = sqlMapSE.queryForList("queryMarketBySector", hm);
long et=System.currentTimeMillis();
try
{
out.write("3: queryMarketBySector "+(et-st));
out.write("/r/n");
out.flush();
}
catch(Exception e)
{
e.printStackTrace();
}
- To estimate the database's effective!
- How to estimate the time required for a program.
- Learn to Estimate
- Learn to Estimate
- Physical Database Design: the database professional's guide to exploiting indexes, views, storage, a
- The Web Testing Companion: The Insider's Guide to Efficient and Effective Tests
- to designer about the database
- Estimate
- resolve the address to the Access database
- how to change activemq's persistence database
- The Concordance Database Manual (Expert's Voice)
- The Database Hacker's Handbook : Defending Database Servers
- The Database Hacker's Handbook: Defending Database Servers
- The Database Hacker's Handbook: Defending Database Servers
- How to Estimate a Web Site Project
- Agile Database Techniques : Effective Strategies for the Agile Software Developer
- The order SQL server estimate sql sentence.
- server 2 task(s) are sleeping waiting for space to become available in the log segment for database tempdb.
- 把程序作成服务
- 防注入攻击指南
- 掌握5C,迎接亮职生涯
- 男人
- 用asp.net 2.0实现网站二级域名
- To estimate the database's effective!
- SQL SERVER 与ACCESS、EXCEL的数据转换
- .NET环境下水晶报表使用总结
- CH83 High-Voltage Capacitors Features
- VMware的网卡设置模式
- 关于 厦门“怪虫” 的一点感概
- 阿里布达的恶搞、引用、套用列表说明
- PreparedStatement 和 Statement 使用差别
- 好久没来测试一下