The “this feels good” part of the high typically lasts maybe 1-3 hours, after which you smoke more. The actual stimulant effect lasts much, much longer, maybe 12ish hours. That part very heavily depends on the dose size and quality, tolerance and your individual response to it.
Yes, it keeps you from sleeping. At my peak I didn’t really have much use for the concept of separate days since I was normally awake for ~72hrs at a time.