Hey Russ, You might look at how Google App Engine tries to get a handle on this when charging for CPU: http://code.google.com/appengine/docs/billing.html
Josh has pointed out that there's some weird interpretations. For instance, they quote $0.10 per cpu hour but don't specify the CPU. Is it the canonical CPU at standard atmosphere? :-) Google "google app engine calculating one cpu hour" to see interesting corner cases. -S On Mon, Mar 7, 2011 at 12:56 PM, Gary Schiltz <[email protected]> wrote: > Interesting idea. Most Common Lisp implementations compile to native machine > code, so it might not be too hard to instrument the generated code to do > some kind of bookeeping. There are quite a few open source implementations > out there, e.g. Steel Bank Common Lisp (www.sbcl.org) or Clozure Common Lisp > (trac.clozure.com/ccl). > ;; Gary > > > On Mar 7, 2011, at 12:38 PM, Russ Abbott wrote: > > I'm considering the development of an ABM in which the agents are charged > for the computations they do. But I can't think of a language that > facilitates that. I know that in most languages one can look at the > real-time clock, but I can't think of a language in which one can look at a > dynamic count of (virtual) instructions executed -- or even an dynamic > measure of the amount of CPU time devoted to executing the instructions of > each agent. Am I missing something obvious? Can anyone help. > Thanks. > > -- Russ > > ============================================================ > FRIAM Applied Complexity Group listserv > Meets Fridays 9a-11:30 at cafe at St. John's College > lectures, archives, unsubscribe, maps at http://www.friam.org > -- --- -. . ..-. .. ... .... - .-- --- ..-. .. ... .... [email protected] 624 Agua Fria, Santa Fe, NM 87501 office: 505.995.0206 mobile: 505.577.5828 redfish.com | sfcomplex.org | simtable.com | ambientpixel.com ============================================================ FRIAM Applied Complexity Group listserv Meets Fridays 9a-11:30 at cafe at St. John's College lectures, archives, unsubscribe, maps at http://www.friam.org
