我该如何制作一个柜台? [英] How can I make a counter?
本文介绍了我该如何制作一个柜台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何制作一个计数器,显示返回数据库结果的时间。我希望有人能指导我它是如何工作的,以及它如何工作。
我尝试过:
您尝试过什么?
我只想要一个提示。
How can I make a counter which shows at what time the result from the database was returned. I would like someone to direct me how it works and how it works with what it will work.
What I have tried:
What have you tried?
I only want a tips.
推荐答案
确定 - 提示 - 根据您对评论的评论:
在服务器(php)上完成工作。
1 - get_the_start_time。
2 - 请求数据。
3 - get_the_end_time。
现在,你可以为你的报告操作这个(比如谷歌的例子)
用你的数据做你想做的事(统计数据,例如计数) 。
从结束时间减去开始时间。
现在你有统计数据和时间。
OK - Tips - based upon your comment to the comments:
On server (php) where the work is done.
1 - get_the_start_time.
2 - request the data.
3 - get_the_end_time.
Now, you can manipulate this for your reporting (like you google example)
Do what you want with your data (statistics, for example a count).
Subtract the start time from the end time.
You now have your statistics and timing.
这篇关于我该如何制作一个柜台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文