search for: curtime

Displaying 8 results from an estimated 8 matches for "curtime".

Did you mean: crtime
2010 Sep 19
2
get time as a number
Hi, all, How to get a time as a number? While script is running, I want to print the elapsed time something like TIME_AS_SECOND() in the following script inittime <- TIME_AS_SECOND() for (i in 1:100){ do_something(i) curtime <- TIME_AS_SECOND() elapsedtime <- curtime-inittime print(paste(i, elapsedtime)) } Thanks in advance, Hyunchul [[alternative HTML version deleted]]
2004 Aug 06
2
[patch] time stamps in dump file names
...c icecast-2.0.1.scram/src/source.c --- icecast-2.0.1/src/source.c Wed May 12 17:55:30 2004 +++ icecast-2.0.1.scram/src/source.c Wed Jun 2 23:17:29 2004 @@ -50,6 +50,16 @@ http_parser_t *parser, const char *mount, format_type_t type, mount_proxy *mountinfo) { + char buffer[PATH_MAX]; + time_t curtime; + struct tm *loctime; + + /* Get the current time. */ + curtime = time (NULL); + + /* Convert it to local time representation. */ + loctime = localtime (&curtime); + source_t *src; src = (source_t *)malloc(sizeof(source_t)); @@ -76,7 +86,8 @@ src->fallback_mount = strdup (mo...
2004 Aug 06
2
[patch] time stamps in dump file names
...c icecast-2.0.1.scram/src/source.c --- icecast-2.0.1/src/source.c Wed May 12 17:55:30 2004 +++ icecast-2.0.1.scram/src/source.c Wed Jun 2 23:17:29 2004 @@ -50,6 +50,16 @@ http_parser_t *parser, const char *mount, format_type_t type, mount_proxy *mountinfo) { + char buffer[PATH_MAX]; + time_t curtime; + struct tm *loctime; + + /* Get the current time. */ + curtime = time (NULL); + + /* Convert it to local time representation. */ + loctime = localtime (&curtime); + source_t *src; src = (source_t *)malloc(sizeof(source_t)); @@ -76,7 +86,8 @@ src->fallback_mount = strdup (mo...
2012 Mar 22
1
Page fault with MFC42.DLL
...simple test program to illustrate... #include "stdafx.h" #include "afxole.h" Code: int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { COleDateTime curTime; curTime=COleDateTime::GetCurrentTime(); CString nowStr; nowStr=curTime.Format("'%c'"); /* CRASHES HERE */ printf("%s\n",nowStr); return 0; } My setup is as follows: 1. Build environment. Visual Studio 6 Service Pack 6 2. Run environment - Fre...
2010 Aug 13
1
assign multiple variables at once
R Experts, I would like to create a series of variables without having to assign a separate line of code for each new variable. My dataframe (DF) contains two groups of linked variables (ESP1:ESP9) and (ECRL1:ECRL9). Within ESP1:ESP9 are abbreviated species codes (full dataframe contains 26 codes). ECRL1 represents the number of species x in variable ESP1 harvested, and so on through ESP9 and
2008 Mar 14
0
[PATCH] Add periodic fflush to xentop batch mode.
...periodicaly using pipe. Best Regards, Yusuke Kaneki ---- *** old/xentop.c 2008-03-14 21:00:28.000000000 +0900 --- new/xentop.c 2008-03-14 21:00:36.000000000 +0900 *************** *** 1121,1126 **** --- 1121,1127 ---- do { gettimeofday(&curtime, NULL); top(); + fflush(stdout); oldtime = curtime; if ((!loop) && !(--iterations)) break; _______________________________________________ Xen-devel mailing list...
2007 Oct 02
3
[PATCH] SIGTERM and SIGINT handler to flush xentop -b outputs
...(stdout); + exit(0); +} + int main(int argc, char **argv) { int opt, optind = 0; @@ -1102,6 +1110,8 @@ int main(int argc, char **argv) ch = getch(); } while (handle_key(ch)); } else { + signal(SIGTERM, a_sig_handler); + signal(SIGINT, a_sig_handler); do { gettimeofday(&curtime, NULL); top(); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2011 Feb 04
1
read.table error
R experts, I am working with a fairly large data set comprised of 563 rows by 116 columns including several different modes. I have been unable to read in the data set completely using the read.table function and the RGui (i.e. nearly half the total number of rows are missing from the data set along with the column names). The data does read in fully using Tinn-R's Rterm; however, at several