0
Follow
1
Followers
Contoh kodnya ialah:
function main(){
while(true){
onTick()
Sleep(1000)
}
}
function onTick(){
Log '-- penghantaran - ')
}
Hasilnya, ia tidak mencetak log setiap saat, tetapi secara rawak setiap 2 minit, 4 minit, 8 minit, 10 minit, dan apa yang berlaku selepas Sleep dipadamkan?
2020-04-30 23:02:00 Maklumat -- waktu --
2020-04-30 23:00:00 Maklumat -- waktu --
2020-04-30 22:58:00 Maklumat -- waktu --
2020-04-30 22:54:00 Maklumat -- waktu --
2020-04-30 22:50:00 Maklumat -- waktu --
2020-04-30 22:46:00 Maklumat -- waktu --
2020-04-30 22:36:00 Maklumat -- waktu --
2020-04-30 22:32:00 Maklumat -- waktu --
2020-04-30 22:24:00 Maklumat -- waktu --
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (1)
- 1
