search for: curtim

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

Did you mean: curtis
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 (m...
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 (m...
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 - Fr...
2010 Aug 13
1
assign multiple variables at once
...2, 2, 2, 1, 1, 1, 1, 1, 1), SITENUM = c("102", "104", "104", "104", "101", "101", "102", "103", "101", "101", "101", "101", "103", "103", "103" ), CURTIM = c(1450L, 1736L, 1755L, 1804L, 1950L, 2007L, 1150L, 1450L, 2000L, 1003L, 1030L, 1036L, 1300L, 1310L, 1320L), GRPFSH = c(2L, 2L, 2L, 2L, 2L, 3L, 1L, 2L, 3L, 2L, 4L, 1L, 1L, 3L, 1L), EEFF = c(11.5, 19, 5, 20, 0, 0, 5, 8, 0, 0, 0, 0, 3, 12, 6), ESP1 = c("SMB", "SMB", "SMB...
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
...4L, 15042L, 16254L, 16510L, 16428L, 16428L, 16428L, 15690L, 16037L, 16505L, 16056L, 16505L, 15236L, 15227L, 16506L, 16424L, 16335L, 16365L, 15122L, 15044L, 16314L, 15650L, 16323L, 15825L, 16415L, 16373L, 16335L, 16423L, 16506L, 13021L, 15237L, 15906L, 16428L, 16509L, 16514L, 16504L, 55110L, 7336L), CURTIM = c(1932L, 1935L, 1945L, 1957L, 2000L, 2134L, 2135L, 811L, 830L, 931L, 1028L, 1200L, 1755L, 1812L, 1809L, 1811L, 1800L, 1610L, 740L, 1503L, 1651L, 1725L, 1813L, 1043L, 1147L, 1305L, 1328L, 1330L, 1450L, 1455L, 1500L, 1505L, 1515L, 1520L, 1625L, 1630L, 1450L, 1455L, 1520L, 1530L, 1531L, 1533L, 1600L...