Reading the designated Software Timer's counter value
int st_free_get_count(int $st_id)
Returns the counter value of the designated Software Timer
<?php
include "/lib/sd_340.php";
st_free_setup(0); // Configuring ST0 as a free mode and start the timer
while(1)
{
$count = st_free_get_count(0); // Reading the ST0's counter value
echo "$count\r\n"; // outputting the value
}
?>