Monte Carlo simulation of scintillator detector time resolution based on LongScintillator library (Qt, ROOT)