It is necessary to take a good quality of sleep, to grasp correctly the sleep current situation first. Sleepiary is an application that can be easily make a sleep diary. You can record the event very easily with one click. Eg, "take the medicine, " in addition to "going sleep" and "wakeup", it can be set to any events.