Didn't relativity theory start out like that?
If you don't want to sacrifice sleep or free time, use office hours (if you have a job with not much to do, that is).
I don't think it's wise to work on your side projects during work. Moral objections aside, there's a reasonable chance your employer will then own the rights to your side project.