Without a doubt Frederick was the hardest-working ruler of his day, rivaled only by Joseph II of Austria. Most mornings he rose at 5:00 AM, sometimes 4:00 AM, and worked until 5:00 PM, allowing the remainder of the day for rest and recreation, finally going to bed around midnight. Nothing got in the way of his work schedule or escaped his watchful eye. He created a Bureau of Accounts to supervise state finances and he was merciless on corruption to the point where he made Prussia the most efficient, honestly-run government in Europe, maybe the world. Frederick quickly restored the country's economy from the ruins of the Seven Years War, in part with his own frugal example--his household was run like an army barracks in comparison to France and Austria, which kept their extravagent courts at all times despite ruinous expense to the taxpayers.
Only the army was lavished with funds; it was rebuilt quickly after the war as Prussia's security against her greedy neighbors was essential. In addition to protecting from foreign aggressors, the army was Prussia's main police force and necessary to preserving law and order. Frederick also developed a unified legal code in place of the many regional ones; he got rid of unnecessary courts, made the penal code more humane, simplified legal procedure, and improved the requirements needed to serve as a judge. Capital punishment could not be handed out without the king's personal approval and all citizens convicted of a crime could appeal their sentence directly to him.