Fix error
This commit is contained in:
parent
052e8df93d
commit
9ce28309b1
@ -1,4 +1,4 @@
|
||||
#define NUM_OF_RUNNERS 2
|
||||
// #define NUM_OF_RUNNERS 2
|
||||
|
||||
#include "../lib/asynco.hpp"
|
||||
#include "../lib/event.hpp"
|
||||
@ -67,6 +67,14 @@ int main () {
|
||||
* Init interval and timeout; clear interval and timeout
|
||||
*/
|
||||
|
||||
vector<interval> intervals;
|
||||
|
||||
for(int i=0; i<10; i++) {
|
||||
intervals.push_back(interval( [i, &start]() {
|
||||
cout << "interval " << i << " end: " << rtime_ms() - start << endl;
|
||||
}, (i%5 +1)*1000));
|
||||
}
|
||||
|
||||
// interval( [&] () {
|
||||
// cout << "interval 1: " << rtime_ms() - start << endl;
|
||||
// }, 50);
|
||||
|
Loading…
x
Reference in New Issue
Block a user