st_free_get_count()


Reading the designated Software Timer's counter value

Description

int st_free_get_count(int $st_id)

Parameters

Return Value

Returns the counter value of the designated Software Timer

Example

<?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
}
?>

See also