Help: Script to synchronise GPS time with computer time

Hi all, I have a gps and I want to synchronize the time with the system so that the acquisition time and the gps time will be the same. Here is my gps script but need to know how to synchronize with the system maybe using NTP.

{:global i 10;

global g1 loca;

global g2 param;

global g3 gps;

do {:put (g1 . $i);

/interface wireless monitor wlan1 once file (g1 . $i)

/interface monitor-traffic wlan1 once file ((g2 . g1) . $i)

/system gps monitor once file ((g1 . g3) . $i)

delay (10s);

set i ($i-1);} while (($i<11) && ($i>0)); unset i;}
Thank you.

but why, RouterOS has built-in ability to synchronize with GPS time:
http://wiki.mikrotik.com/wiki/Manual:System/GPS

use “set system time” in th GPS menu