public long GetRunningTime( )
{
byte[] response = new byte[100];
int read = SendAndReceive( new byte[] { (byte) 't' }, response );
string str = System.Text.ASCIIEncoding.ASCII.GetString( response, 0, read );
str = str.Replace( "##time - millisecs:", "" );
str = str.Trim( );
try
{
return long.Parse( str );
}
catch
{
throw new ApplicationException( "Failed parsing response from SRV-1." );
}
}