Josephson device for simultaneous time and energy resolution