C++ Guru, please help me....
I am doing a simulation using C++ (console application)
In the simulation, connection requests arrive following a poisson process.
I need generate connection requests and handle these requests.
Each time a request is generated, the request will be passed to a function for handling.
My problem is:
If a request was generated at time T1 , how to trigger a function at T1+T2 ? (T2 is a time instance and is poisson distributed).
"time" function can be used to get the current system time, then how to trigger a function at another time instance? What key C++ functions could be used?
I know how to handle this problem in WFC and Platform SDK since WM_TIMER messege is available.
Thank you very much!!!
In the simulation, connection requests arrive following a poisson process.
I need generate connection requests and handle these requests.
Each time a request is generated, the request will be passed to a function for handling.
My problem is:
If a request was generated at time T1 , how to trigger a function at T1+T2 ? (T2 is a time instance and is poisson distributed).
"time" function can be used to get the current system time, then how to trigger a function at another time instance? What key C++ functions could be used?
I know how to handle this problem in WFC and Platform SDK since WM_TIMER messege is available.
Thank you very much!!!
那么,分离是不是天注定
人与人之间,看似很简单,却也不尽然
爱上你,只要一瞬间,遗忘你,却要用尽一生的时光
如果不能陪你到永远,我只能隔着黑夜的寂寥默默想你