LogTime
This class is used to track how long a process takes to complete. Use start*() to start tracking. use end() to end tracking. Time diff will be printed in log. How to Use `Ref ref = LogTime.getInstance().start("my_tag");` later on, somewhere else `ref.end()` or if you want to end in another file and don't want to pass the `ref` around, use the stop method with same key. `LogTime.getInstance().stop("my_tag");`
Additional options: custom threshold time to show warning if a process took longer than threshold time. setWarningThreshold
use predefined Keys in LogTimeKey instead of your own string when possible to avoid typo in key string.
start has 2 variations. start or forceStart. Use the latter if you want to force start an already started key.
feel free to add more keys into LogTimeKey. Make key as much descriptive as possible to avoid confusion.