search for: inittime

Displaying 2 results from an estimated 2 matches for "inittime".

Did you mean: init_time
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]]
2002 Jul 24
1
loading compiled C++ code as shared library
...sonality_v0 The structure of the C++ file is as follows. I'm concatenating the header file (.hh) and the actual source code file (.cc) here. (I'm not including any real code here, since I hope this is just a syntax issue). I have //some initial header stuff #include<vector> #define INITTIME 100 #define LOWERLIM -1000000.0 #define UPPERLIM 1000000.0 using std::vector; using std::equal; // define some structs struct alpha {...}; ... //declare functions foo(...); bar(...); //function definitions foo() { bar(); ... } bar {...} //end c++ file In a separate R file I am trying try...