Howto get time in plugin ?

I’m trying to make a additional view in the plugin “my-views”, where I show “new post since last logout”. Inorder to do this I have added a new column to the online tabel from plugin “simpel onlinelist” inwhich I put the time when the user logoff.

I use the time from onlinelist :

$now = bb_current_time(‘mysql’);

but it look as if the time is 10 min to late!

So if I logoff and then logon again I may get some post which are to old.

In order to compare I made a small test where I made a new post and the logged out. Time on the post say 2008-04-22 11:44:07 and on the logout 2008-04-22 11:34:49.