本地时间计算 [英] Local Time calculation

查看:88
本文介绍了本地时间计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我必须提出一个申请,应用程序以分钟为单位测量时间戳。



在每分钟,从服务器收到多少消息。



可以帮我实现这个。



问候,

Ranjith

Dear All,

I have to make one application, the application measure timestamp in minutes.

In every minutes , how many messages received from the server.

Could any can help me to implement in this.

Regards,
Ranjith

推荐答案

使用 time()获取当前时间或类似,并将计数器归零。每次收到消息时,都会向计数器添加1。检查时间,当经过60秒后显示计数器。
Capture the current time using time() or similar, and zeroise the counter. Every time a message arrives add 1 to the counter. Check the time, and when 60 seconds have elapsed display the counter.


这篇关于本地时间计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆