People are turning this into a "more euphoric" contest instead of actually answering OP's question.
Ritalin & amphetamine are not going to be over in 1-2hrs. And for people with no tolerance, that 3-4 hour duration that they do have can actually feel a little longer.
Don't nobody take ONE ritalin or amphetamine pill & then stop after the 3-4hr window either, you're gonna be doing more once it wears off due to the crash, turning it into an all nighter anyway.
Sure, buproprion sucks, but OP didn't ask about "the most euphoric", he asked about the shortest acting.
Not to mention the comedown from ritalin or amphetamine lasts just as long as the damn "high" itself.
OP asks if there are stimulants that work for only an hour or two & we got people jumping to tell him ritalin & amphetamine. Wtf. Yeah OP, get hooked on speed, that's even better. Listing the 2 most common addictive stimulants (that technically aren't that short acting or as short acting as OP wants) is a pretty lazy answer.
If OP truly wants heavy euphoria & a hard drug habit from a super short acting stimulant, than other than cocaine, all there is is crack. Otherwise methylphenidate or amphetamine are not gonna be over in 1-2hrs. And they're compulsive enough that it'll likely turn into an all nighter anyway to try & avoid the come down. Some people can sleep after taking methylphenidate & amphetamine, but tolerance & dosage plays a huge role as well. And again, neither are 1-2hrs duration.
Again, ritalin & amphetamine are both much longer acting than cocaine, even in their instant release form & especially for some one with no tolerance. Both are moreish and you will want to do more once it wears off anyway, so by doing either one you could potentially be setting yourself up for sleep deprivation & insomnia, even if the acute effects from them are over. These are not stimulants that you're gonna be able to enjoy for an hour or two & then go to bed. They're short acting compared to methamphetamine & their extended-release counterparts, but still aren't good candidates for what OP asked.
OP, the reality is that there aren't any easily available, recreational stimulants that are as short acting as cocaine or shorter. Or even an hour or so, besides buproprion. And it's a shitty drug with almost no euphoria at all, possibly just more focus & motivation, that generally wears off within an hour. Most widely used stimulants last at least 4hrs or longer. And even when they are over, there can be some residual insomnia or cravings/desire to use more.
Ephedrine is also a very mild stimulant that's easy to put down & go to bed with at night, but it too can last up to 4hrs. Though it's not going to cause you to feel tweaked or overly awake like amphetamine & ritalin can (although it could possibly, since everyone reacts to things differently). In fact, I've gone to bed a few hours after taking ephedrine many times. Although ephedrine is actually harder on your cardiovascular system than taking amphetamine, so I don't advise making a habit of it.