Sponsored Content
Operating Systems Linux Red Hat Data transfer Time calculation Post 302842875 by wisecracker on Sunday 11th of August 2013 02:49:16 AM
Old 08-11-2013
Nice reply...

There is a number 6...

6) What happens if or when there is a connection failure of some sort or major corruption?
Your time calculation(s) will then be of no use to you at all under those conditions...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

time calculation

Hi, I have start time as a string like 06:04:01 and end time like 06:05:01 i need do a simple math to get the duration. What is the best way to do this in Korn Shell scripting? Thanks (2 Replies)
Discussion started by: liux99
2 Replies

2. Shell Programming and Scripting

script execution time calculation

I am writting a script in the ksh shell and am trying to find a way to report the total execution time of the script without requiring the user to specify the time function when executing the script. Does anyone have any examples they have used. I have been setting up two date variables (one at... (9 Replies)
Discussion started by: johnsonbryce
9 Replies

3. UNIX for Dummies Questions & Answers

Average completion time calculation?

I've been trying all night to come up with a script that will take a file that contains job completion times like this as input: 18:30 17:45 16:39 18:01 17:50 ... and figure the Average completion time. I've tried several things, and I just can't seem to get it to figure correctly. I'm... (5 Replies)
Discussion started by: Seawall
5 Replies

4. Shell Programming and Scripting

Time difference calculation

Hi Team, I am currently in the process of writing a script which will take a filename in the format SKADEV.0.db2.NODE0000.CATN0000.20080714231015.001 where the sixth string(with "." as the seperator) is the time stamp of the time of creation of the file. now here is my issue . I need to be... (2 Replies)
Discussion started by: Segwar
2 Replies

5. UNIX for Dummies Questions & Answers

Time Calculation

I have a file with over 100,000 lines of data with looking to compare times of about 2000 lines to get a total time of a process. The lines of unique data are as follows. FINER: CacSoapServer:reserveNetworkResource got the sessionID and INFO: Created CAC session ID The command... (5 Replies)
Discussion started by: bpfoster76
5 Replies

6. Shell Programming and Scripting

Time stamp calculation

Hi all; I'm relatively new to scripting,I am working on a monitoring script.....where in i have to write subroutine which does the follows: It will check the time stamp of a file ( Oracle remarchive files) and compare it with existing time.If the time difference happen to be more than 90... (6 Replies)
Discussion started by: maverick_here
6 Replies

7. Shell Programming and Scripting

Ksh Solaris Time calculation problem..Please help

I've gone through bunch of threads on time calculations but none of them helps on my problem I've to get the time difference in HHMM format from following inputs Input 1 : 01/08/2010 01:30 01/08/2010 03:20 Input 2 : 01/06/2010 22:00 01/07/2010 16:00 First input is easy but... (8 Replies)
Discussion started by: prash184u
8 Replies

8. Shell Programming and Scripting

Date time calculation

hello guys, I had been to many forums and many topics in this site as well for my question but did not get any solution. My question is how i can get y'day date with time stamp today is 20100729103819 and i am looking for output as 20100728103819. in simple words as we do in oracle sysdate-1... (4 Replies)
Discussion started by: lokaish23
4 Replies

9. Shell Programming and Scripting

time calculation in ksh script

I"m trying to calculate the duration of of backup within a ksh shell script but I get an error. #!/bin/ksh STTIM=`date '+%T'` EDTIM=`date '+%T'` .... .... echo "DURATION OF BACKUP: $((EDTIM - STTIM))" (5 Replies)
Discussion started by: Bperl1967
5 Replies

10. Shell Programming and Scripting

Time calculation

Hi Gurus, I need to get one hour before time is yyyymmddhh format. ex. date +"%Y%m%d%H" gives 2017052814 but I need 2017052813 Thankx Please use CODE tags as required by forum rules! (6 Replies)
Discussion started by: nalakaatslt
6 Replies
Data::StreamSerializer(3pm)				User Contributed Perl Documentation			       Data::StreamSerializer(3pm)

NAME
Data::StreamSerializer - non-blocking serializer. SYNOPSIS
use Data::StreamSerializer; my $sr = new Data::StreamSerializer('You data'); while(defined(my $part = $sr->next)) { print $socket $part; } DESCRIPTION
Sometimes You need to serialize a lot of data. If You use 'Dumper' it can take You for much time. If Your code is executed in event machine it can be inadmissible. So using the module You can serialize Your data progressively and do something between serialization itearions. This module works slower than Data::Dumper, but it can serialize object progressively and You can do something else between serialization iterations. Recognized types. HASH ARRAY REF Regexp SCALAR METHODS
new Constructor. All arguments will be serialized. next Returns next part of serialized string or undef if all data were serialized. block_size Block size for one iteration. Too small value allows You to spend less time for each iteration, but in this case total serialization time will grow. Nod bad choice to set the value between 200 - 2000 bytes (default value is 512). See BENCHMARKS to make a decision. recursion_depth If serialized object has recursive references, they will be replaced by empty objects. But if this value is higher than 1 recursion will be reserialized until the value is reached. Example: my $t = { a => 'b' }; $t->{c} = $t; This example will be serialized into string: {"c",{"c",{},"a","b"},"a","b"} and if You increment recursion_depth, this example will be serialized into string: {"c",{"c",{"c",{},"a","b"},"a","b"},"a","b"} etc. recursion_detected Returns TRUE if a recursion was detected. is_eof Returns TRUE if eof is reached. If it is TRUE the following next will return undef. SEE ALSO
Data::StreamDeserializer. BENCHMARKS
You can try a few scripts in benchmark/ directory. There are a few test arrays in this directory. Here are a few test results of my system. Array which contains 100 hashes: $ perl benchmark/vs_dumper.pl -n 1000 -b 512 benchmark/tests/01_100x10 38296 bytes were read First serializing by eval... done First serializing by Data::StreamSerializer... done Starting 1000 iterations for Dumper... done (40.376 seconds) Starting 1000 iterations for Data::StreamSerializer... done (137.960 seconds) Dumper statistic: 1000 iterations were done maximum serialization time: 0.0867 seconds minimum serialization time: 0.0396 seconds average serialization time: 0.0404 seconds Data::StreamSerializer statistic: 1000 iterations were done 58000 SUBiterations were done maximum serialization time: 0.1585 seconds minimum serialization time: 0.1356 seconds average serialization time: 0.1380 seconds average subiteration time: 0.00238 seconds Array which contains 1000 hashes: $ perl benchmark/vs_dumper.pl -n 1000 -b 512 benchmark/tests/02_1000x10 355623 bytes were read First serializing by eval... done First serializing by Data::StreamSerializer... done Starting 1000 iterations for Dumper... done (405.334 seconds) Starting 1000 iterations for Data::StreamSerializer... done (1407.899 seconds) Dumper statistic: 1000 iterations were done maximum serialization time: 0.4564 seconds minimum serialization time: 0.4018 seconds average serialization time: 0.4053 seconds Data::StreamSerializer statistic: 1000 iterations were done 520000 SUBiterations were done maximum serialization time: 2.0050 seconds minimum serialization time: 1.3862 seconds average serialization time: 1.4079 seconds average subiteration time: 0.00271 seconds You can see that in any cases one iteration gets the same time. AUTHOR
Dmitry E. Oboukhov, <unera@debian.org> COPYRIGHT AND LICENSE
Copyright (C) 2011 by Dmitry E. Oboukhov This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available. VCS
The project is placed in my git repo. See here: http://git.uvw.ru/?p=data-stream-serializer;a=summary <http://git.uvw.ru/?p=data-stream- serializer;a=summary> perl v5.14.2 2011-02-14 Data::StreamSerializer(3pm)
All times are GMT -4. The time now is 05:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy