Let’s talk about it. The principle of this simple gadget is actually very simple. It is to read the system log of the operating system and determine the earliest boot time of the day. Of course, if you worked overtime until one or two o’clock last night, then it may not be possible. Accurate, but then I thought about it, can I make a judgment on the logic of the program? If our company starts work at 8 o'clock, then if we find that the system log has system logs from 1 o'clock to 7 o'clock, can we just check the system log from 7 o'clock to 7 o'clock? Log at 9 o'clock. Later, I thought about whether I could just select the boot time. If I found that there are multiple boot times, then list them and let the user make their own judgment. That would be perfect.
- Green versionCheck
- Green versionCheck
- Green versionCheck
- Green versionCheck
Finally, we found that when reading the log, we read it backwards, that is, reading the beginning of today, so the performance is much faster.
it works
it works
it works