get timestamp immediately at power disconnected

fixed #1