It makes sense to measure time and set the initialized flag right at the start.
Attach a file by drag & drop or click to upload