We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Once you’ve called parse_code(), you can get the time it took to run the highlighting by calling the get_time() method:
parse_code()
get_time()
$geshi = new GeSHi($source, $language, $path); $code = mysql_real_escape_string($geshi->parse_code()); $time = $geshi->get_time(); // do something with it mysql_query("INSERT INTO code VALUES ('$code', '$time')");