A diamond anvil makes both of those on the tips of the diamond (briefly)
The pressure usually requires a pressure driver to push the diamonds towards each other (some kind of very precise gas pump) which runs of of electricity.
The temperature however evolves rapidly: the sample is heated via laser (usually pulsed to observe dynamics but can also be considered continuous, i.e. above millisecond time scale).