Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/logging/log-analyze/log-analyze.cxx
ViewVC logotype

Diff of /branches/vis15/src/logging/log-analyze/log-analyze.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4883, Mon Jan 2 17:05:06 2017 UTC revision 4884, Mon Jan 2 18:46:26 2017 UTC
# Line 37  Line 37 
37  // convert nanoseconds to seconds  // convert nanoseconds to seconds
38  inline double toSeconds (uint64_t ns)  inline double toSeconds (uint64_t ns)
39  {  {
40      return static_cast<double>(ns) * 10e-9;      return static_cast<double>(ns / 1000000000) + static_cast<double>(ns % 1000000000) * 10e-9;
41  }  }
42    
43  struct worker_stats {  struct worker_stats {

Legend:
Removed from v.4883  
changed lines
  Added in v.4884

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0