Well, at least do the work, first, then ask the teacher if you can get ahead in class so that when the real time comes, you don't have to with the rest of the class, or you can work on something else from another class.
Chat with our AI personalities
You could play games on your laptop or go chat with your friends online.
Or you could go outside for a walk.