It's been a long time since cameras had fully mechanical (clockwork) shutters, but they are all mechanical in the sense that they have moving parts, however, they're pretty well all electronically controlled nowadays which is how shutters these days are pretty well 'stepless' in the speeds they can use.
This is true of shutter systems in most modern cameras whether compacts or DSLRs.
Where DSLRs (and SLRs) differ is in having a focal plane shutter.
To understand why we have a FP shutter, it's important to understand that prior to the SLR being invented, shutters were either in the lens or just behind it. With the invention of the SLR, the lens also became the viewfinder, so it was imperitive that the shutter be removed from the lens so that it could be open all the time for use as a viewinder.
They put the shutter in the only place they could - right at the back of the camera where it sits almost touching the film/sensor and is to all intents and purposes in the focal plane - hence the name.
We gained a lot of advatages with the SLR:-
Looking through the actual taking lens and seeing the FOV regardless of lens focal length.
Being able to actually see if we're in focus.... on ground glass.
Unfortunately, we also have to put up with the FP shutter which is a big heavy mechanism which self destructs with continued use, and due to the fact that it consists of two curtains, or blinds, it causes us problems synching with flash above certain shutter speeds - a problem we didn't have previously.