A320
Flight Crew Instrument; Flight Crew Air Transport Pilot (ATP); Flight Crew Multiengine
Physiological - Other
Aircraft Equipment Problem Less Severe; Flight Deck / Cabin / Aircraft Event Illness / Injury; Flight Deck / Cabin / Aircraft Event Smoke / Fire / Fumes / Odor
Air Traffic Control Provided Assistance; Flight Crew Diverted; Flight Crew Requested ATC Assistance / Clarification; Flight Crew Landed in Emergency Condition; General Maintenance Action
Aircraft
Divert to ZZZ. Fumes and very slight haze around Captains side window; a smell of engine coking (burning oil or electronics smell). 15-20 minutes after departure I turned to my First Officer and asked if he smelled anything. He did not. We continued; the smell persisted and about 1.5 hrs into the flight I began to become very bothered by the smell. I felt like I needed fresh air and decided to begin breathing out of my O2 mask. I began to feel physical issues; like shortness of breath and a little dizzy and thinking about needing to throw up. After a few minutes I got out of my seat for a restroom break and to determine if the smell was in the cabin. It was not. While I was in the restroom the A Flight Attendant came up and sat in my seat. She complained of the smell to the First Officer. He went to check it out and realized it was on my side but not his. I came back from the restroom and at this point it became clear to us that there was definitely a smell on just my side. We ran the QRH and then talked to Dispatch and Maintenance. We used the masks and [advised ATC]; then headed for ZZZ.
A320 Captain reported a burning oil or electronics" smell during cruise that resulted in a diversion."