For a recent project, the client required that several remote computers be time synch’ed by a Trimble GPS unit. The software running on the remote computers was written in C++. I was unable to find a generalized routine to get the gps time, but I did locate some code that defined all the command and report messages, so using that base code, I developed a routine to issue commands to the gps and process the returned messages.
I have posted the class in a github repository and have included as sample driver. You can find the repository at http://github.com/cswaim/gps. If you use this, let me hear how you are using it.