Would get some rest. The 'stomach flu' is typically a viral infection which causes vomiting for a day, followed by diarrhea for several days. It generally resolves on its own, but is very contagious, so good hand washing is important to minimize spread. Sleeping would just allow you to get some needed rest. Unless you have a significant neurological problem, the risk of aspirating your vomit is slim.