I am not sure what exactly you trying to a accomplish, however, to know the duration for any task e.g to view a text file using cat use the command time before any task
hope this helps
skip my answer and check MadeInGermany answer
Last edited by daashti; 01-04-2017 at 04:52 AM..
Reason: wrong answer
I have a file which has 3 coloumns emp_name, Joining_date, Designation.
abc 12/1/2001 SSE
def 2/25/2007 SE
ghi 3/18/2009 SA
abc 8/1/2008 SSE
def 2/13/2007 SE
ghi 3/24/2005 SA
I need to find out the emp who has been in the company for longest period(Till date).
Can I have any... (3 Replies)
hi, i'm trying to figure out how to tell the amount of time a ufsdump of a directory takes. i use the below command:
echo "Starting Backup of u4" >> /backup/backup.log 2>&1
/usr/sbin/ufsdump 0uf /dev/rmt/0n /u4 >> /backup/backup.log 2>&1
echo "Finished Backup of u4" >> /backup/backup.log... (0 Replies)
Hello forum, i would like to ask if there's a way to view the remaining time of copying files (talking about copying gigabytes) while the cp commnad is running.
I'm using OpenBSD 4.9 -stable.
Thanx in advance. :) (2 Replies)
Hi,
I am looking to write a script to kill the process which are running for more than 7 days.
So i have a command like
"ps -eo pid,etime,args | grep -i xxxx" ( process which has xxx in it and running for more than 7 days needs to be killed ).
When i exeucte the above command , i am... (2 Replies)
I have used the arecord command like this
arecord -d 1 test.wav
It is keep on waiting. I need to manually interrupt it by ctrl-c. Why it is not interrupting after one second?
The arecord version which I am using is :
arecord: version 1.0.23 by Jaroslav Kysela (3 Replies)
Hello All,
I have two strings with date and time as follows..
$starttime= "06/11/2013 ";
$starttime= "05:15";
$enddate="06/12/2013";
$endtime="04:45";
dates are in mm/dd/yyyy format and time in military format.
and I am looking the duration of time(in minutes) in between dates.
... (3 Replies)
I have a file with time in it. I need to find the duration between the timestamp by subtracting second row from third row and so on. and wherever it is more than 30 minutes it should display start and end time which have been subtracted
file :
00:44:11
00:44:11
00:44:13
00:44:13
00:46:51... (2 Replies)
did this function to generate the duration of all the video files in a folder or multiple folders, it works fine for my use (I am no Guru as you may have noticed) but when I give it a lot of folders the calculation get a bit borked.
If any good soul had the energy to look at it and give... (4 Replies)
Discussion started by: zouhair
4 Replies
LEARN ABOUT DEBIAN
std::chrono::duration
std::chrono::duration< _Rep, _Period >(3cxx) std::chrono::duration< _Rep, _Period >(3cxx)
NAME
std::chrono::duration< _Rep, _Period > -
SYNOPSIS
Public Types
typedef _Period period
typedef _Rep rep
Public Member Functions
constexpr duration (const duration &)
template<typename _Rep2 , typename = typename enable_if<is_convertible<_Rep2, rep>::value &&
(treat_as_floating_point<rep>::value || !treat_as_floating_point<_Rep2>::value)>::type> constexpr duration (const
_Rep2 &__rep)
template<typename _Rep2 , typename _Period2 , typename = typename enable_if<treat_as_floating_point<rep>::value ||
(ratio_divide<_Period2, period>::type::den == 1 && !treat_as_floating_point<_Rep2>::value)>::type> constexpr
duration (const duration< _Rep2, _Period2 > &__d)
constexpr rep count () const
template<typename _Rep2 = rep> enable_if
<!treat_as_floating_point
< _Rep2 >::value, duration & >
::type operator%= (const rep &__rhs)"
template<typename _Rep2 = rep> enable_if
<!treat_as_floating_point
< _Rep2 >::value, duration & >
::type operator%= (const duration &__d)"
duration & operator*= (const rep &__rhs)
constexpr duration operator+ () const
duration & operator++ ()
duration operator++ (int)
duration & operator+= (const duration &__d)
constexpr duration operator- () const
duration & operator-- ()
duration operator-- (int)
duration & operator-= (const duration &__d)
duration & operator/= (const rep &__rhs)
duration & operator= (const duration &)
static_assert (!__is_duration< _Rep >::value,'rep cannot be a duration')
static_assert (__is_ratio< _Period >::value,'period must be a specialization of ratio')
static_assert (_Period::num > 0,'period must be positive')
Static Public Member Functions
static constexpr duration max ()
static constexpr duration min ()
static constexpr duration zero ()
Detailed Description
template<typename _Rep, typename _Period>struct std::chrono::duration< _Rep, _Period >
duration
Definition at line 221 of file chrono.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 std::chrono::duration< _Rep, _Period >(3cxx)