You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timeout = 2000, run time is 2
timeout = 3000, run time is 3
timeout = 4000, run time is 4
timeout = 5000, run time is 5
timeout = 6000, run time is 6
timeout = 7000, run time is 7
timeout = 8000, run time is 8
timeout = 9000, run time is 9
timeout = 10000, run time is 10
timer is over!
exactly as we expected!
The text was updated successfully, but these errors were encountered:
/*
Swap parent with child. Child moves closer to the root, parent moves away.
the official heap_node_swap actually just moves the pointer but it indeed does not have a data pointer. and heap_node_swap below moves both, the pointer self and it's data pointer
*/
a simple timer based on kqueue and min binary heap
run the code ,you'll get
exactly as we expected!
The text was updated successfully, but these errors were encountered: