SELECT FLOOR(UNIX_TIMESTAMP(NOW(3)) * 1000)
This will give you the current time as integer in milliseconds.