Historically, insomnia has been thought of as secondary to other disorders such as depression. The idea was that you became depressed – and that your sleep got messed up as a consequence. This might involve difficulty falling asleep, excessive time awake at night or waking up earlier than hoped.
Computer gaming is now a regular part of life for many people. Beyond just being entertaining, though, it can be a very useful tool in education and in science.