Hi,can someone give advice how to improve timing on solos and riffs?

My timing isn't very bad, I can play with metronome or with a band and somehow no one complains about it.

However it isn't perfect. Sometimes I hit note on right drum beat and then it sounds a lot better, so I want to be able always hit it in time.

Perhaps someone knows how to improve it?
imagining that my picking hand is a percussive instrument (because it is, really) always helps me. besides that, i think it's just something you get a better feel for over time. listening to recordings of yourself makes your timing errors more obvious to the ear.
Quote by archerygenious
Jesus Christ since when is the Pit a ****ing courtroom...

Like melodic, black, death, symphonic, and/or avant-garde metal? Want to collaborate? Message me!
Don't expect perfection. You will get better with practice.

Human beings aren't machines.