|
We are running computing jobs with GridEngine. Every jobs returns 3 different times:
Wall clock time User time CPU time What are the differences between these three? Which of these three is most suitable to compare the performance of two applications/...
Started by Peter Smit on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
This does not count anything....
User time measures the amount of time the CPU spent running your code.
This is equivalent to timing at the time.
Wall clock time is the actual amount of time taken to perform a job.
|
|
Given a date/time as an array of (year, month, day, hour, minute, second), how would you convert it to epoch time, ie, the number of seconds since 1970-01-01 00:00:00 GMT?
Bonus question: If given the date/time as a string, how would you first parse it...
Started by dreeves on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
It returns the corresponding unix time (seconds since 1970-01-01 00:00:00 GMT", otherwise "19XX" (eg, "50-02-15" means....
This is the simplest way to get unix time:
use Time::Local; timelocal($second,$minute,$hour,$day" or "2009.02.15").
|
|
Hi - I am working in C#.net - .Net fx is 2.0 which doesnot support converting between different time zones. I have wrote a scheduler based on UTC but it is giving errors of 1 hour in the DTS periods for London. I need some solution so that I can gat the...
Started by MSIL on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm looking for....
TimeZoneInfo in .NET 3.5 it will not be the same time.
NET does support converting UTCtime to local time:
DateTime currentServerTime (or whatever the rule is) rather than knowing that the rule has changed over time.
|
Ask your Facebook Friends
|
I have a form where users input information for a test run on a particular date. This creates a table that i then link with another table based on the date and an ID. In this other table (filled by a form created by someone else) all of the times are ...
Started by Matt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The time portion sits you have a single Date/Time field in your form's record source, and you want to display the date portion in one form control and....
User a datetime picker control - let the user just pick the date portion .
Constraint.
|
|
How can I create a boost::local_time::local_date_time object from a tm time structure?
Started by Richard on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Bit of a pain, but it seems like you have to go via posix_time::ptime:
using namespace boost; time_t rawtime; time(&rawtime....
Look around for more conversions.
This will help you to convert tm structure into posix_time object.
|
|
I'm having trouble calculating a time (hours:minutes) difference between three time values presented as HH:mm strings.
I'm calculating time worked in a day from time in, lunch time and time out.
e.g. var time_worked = time_out - lunch - time_in or 07:...
Started by th3hamburgler on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're given an input of something creation of Date objects) is to add 24 hours... .
Any time can be turned into hours just by dividing the number of minutes by 60 you have except you don't have to do time based math.
Hours back into minutes.
|
|
So, here's the scenario. I have a file with a created time, and I want to choose a time from a list of times that that file's created time is closest or equal too...what would be the best way to accomplish this?
Started by sunmorgus on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
Use the minimum absolute time difference between the....
The first one should be the answer you are looking for .
Get the difference of your file creatime and every time in your list and sort the absolute value of each time difference.
|
|
I have a database field of type time with time zone . How can I query this field in EST5EDT time zone with the output format hh:mm:ss?
All I can find is using multiple calls to EXTRACT :
SELECT EXTRACT(HOUR FROM TIME WITH TIME ZONE '20:38:40-07' AT TIME...
Started by griffin on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can simply use CAST and CAST to the time type:
SELECT CAST(now() AS TIME)
(Of course' +time, 'HH24:MI:SS')
Seeing that TO_CHAR only accepts the timestamp datatype, you need to concatentate an arbitrary date value to your time....
|
|
In a PHP site, I have the current time setting:
D j M Y, G:ia
How do I change that to reflect current pacific time with the daylight saving time?
Started by MarlonRibunal on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Date_default_timezone_set('America/Los_Angeles'); // or wherever you are $time = time(); if ($time >= strtotime("Second Sunday March 0") && $....
Date functions take care of DST for you if you just want the current time.
|
|
Is there a simple way to do the equivalent of this, but run the two processes concurrently with bash ?
$ time sleep 5; sleep 8
time should report a total of 8 seconds (or the amount of time of the longest task)
Started by Grant on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
time sleep 8 & time sleep 5
The & operator causes the first command to run in the background, which want to only time the first process, then
time sleep 10 & sleep 20
If you want to time both processes, then
time....
|