Changes between Version 21 and Version 22 of BasicApi


Ignore:
Timestamp:
Jul 1, 2009, 10:21:24 AM (15 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BasicApi

    v21 v22  
    168168}}}
    169169
    170 The `fraction_done` argument is an estimate of the workunit fraction complete (from 0 to 1). This function is fast and can be called frequently. The sequence of arguments in successive calls should be non-decreasing. An application should never 'reset' and start over if an error occurs; it should exit with an error code.
    171 
    172 {{{
    173 #!c++
    174 double boinc_get_fraction_done();
    175 }}}
    176 
    177 returns the last value set, or -1 if none has been set (this would typically be called from graphics code).
    178 
    179 == Communicating with the core client ==
    180 
    181 The following functions get information from the core client; this information may be useful for graphics.
     170The `fraction_done` argument is an estimate of the workunit fraction complete (from 0 to 1).
     171This function is fast and can be called frequently.
     172The sequence of arguments in successive calls should be non-decreasing.
     173An application should never 'reset' and start over if an error occurs; it should exit with an error code.
     174
     175== Miscellaneous data ==
     176
     177The following functions return miscellaneous data:
    182178
    183179{{{
     
    248244||'''starting_elapsed_time'''||Elapsed time, counting previous episodes (provided only by 6.10 and later clients)||
    249245
    250 An application may call
     246== Timing information ==
    251247
    252248{{{
     
    255251}}}
    256252
    257 to get its total CPU time (from the beginning of the work unit, not just since the last restart). This excludes CPU time used to render graphics.
     253gets the total CPU time (from the beginning of the work unit, not just since the last restart).
     254
     255{{{
     256double boinc_elapsed_time();
     257}}}
     258returns the elapsed time since the start of the current episode.
     259The elapsed time from earlier episodes is in APP_INIT_DATA::starting_elapsed_time
     260(only from 6.10+ clients).
    258261
    259262== Standalone mode == #standalone