C++ Guru, please help me....
所在版块:技术の宅 发贴时间:2004-06-09 12:50

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
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!!!
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
C++ Guru, please help me.... 11:05pm   (710 bytes , 590reads )
it's nothing with c++... hula   (219 bytes , 610reads )
Yeah!我也突然想起来了。谢谢哈。 11:05pm   (1 bytes , 358reads )