Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提供定时器功能 #113

Open
TheBadZhang opened this issue Feb 24, 2022 · 1 comment
Open

提供定时器功能 #113

TheBadZhang opened this issue Feb 24, 2022 · 1 comment

Comments

@TheBadZhang
Copy link
Collaborator

rt
做游戏非常需要这种功能进行速度控制,普通用户不太能自己手动设计使用计时器。

@FeJS8888
Copy link

你可以维护一个std::unordered_set<std::pairstd::function,int >在循环中遍历它检查是否到达目标时间,调用setTimeOut函数的时候insert一个就行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants