Click here to Skip to main content
Sign Up to vote bad
good
See more: C++Linux
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
Posted 6 Feb '13 - 23:05

Comments
nv3 - 7 Feb '13 - 5:09
What has your question to do with "local time calculation"? And what are you having difficulties with? Please note that this is not a software ordering service, but a quick-answer section.

1 solution

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.
  Permalink  
Comments
ranjithkumar81 - 8 Feb '13 - 0:47
Do we have any predefined API , which can add currentTime + seconds. Example: Currnet Time : 10:23:45 here i am adding 60 seconds = 10:24:45
Richard MacCutchan - 8 Feb '13 - 5:02
Just use the value returned from the time() function. The documentation on MSDN shows how to do it.
ranjithkumar81 - 18 Feb '13 - 6:15
thanks man

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Mahesh Bailwal 353
1 Sergey Alexandrovich Kryukov 339
2 Maciej Los 290
3 CPallini 245
4 Rohan Leuva 175
0 Sergey Alexandrovich Kryukov 9,162
1 OriginalGriff 7,194
2 CPallini 3,923
3 Rohan Leuva 3,176
4 Maciej Los 2,633


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 7 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid