Sub-second pulsations simultaneously observed at microwaves and hard X rays in a solar burst