Why not just have your script/program send the timestamp with the rest of the information?
You can set TIMESTAMP/DATETIME feild 'time = $timevar' along with the rest of the feild value pairs and you effectively have the time the row was added.
I did this with a php script I wrote to show visitors to my site and when they visited.
PHP Code:
<?
.......
$sqlquery = "INSERT INTO $table
(ip,referrer,search,url,date)
VALUES('$ip','$referrer','$search','$url','$datetime')";
........
?>