PageSourceSearch

https://sst-simulator.org/sst-docs/assets/js/4194aed5.70e224ea.js

js sst-simulator.org collected 2026-10-01 13:55:42 UTC 3,119 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2506],{28453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>c});var i=n(96540);const r={},o=i.createContext(r);function s(e){const t=i.useContext(o);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),i.createElement(o.Provider,{value:t},e.children)}},81491:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>i,toc:()=>m});const i=JSON.parse('{"id":"core/component/time/getCurrentSimTimeMilli","title":"getCurrentSimTimeMilli","description":"Availability: Component, SubComponent, ComponentExtension","source":"@site/../docs/core/component/time/getCurrentSimTimeMilli.md","sourceDirName":"core/component/time","slug":"/core/component/time/getCurrentSimTimeMilli","permalink":"/sst-docs/docs/core/component/time/getCurrentSimTimeMilli","draft":false,"unlisted":false,"editUrl":"https://github.com/sstsimulator/sst-docs/edit/master/docs/../docs/core/component/time/getCurrentSimTimeMilli.md","tags":[],"version":"current","lastUpdatedBy":"grvosku","lastUpdatedAt":1684522150000,"frontMatter":{"title":"getCurrentSimTimeMilli"},"sidebar":"core","previous":{"title":"getCurrentSimTimeMicro","permalink":"/sst-docs/docs/core/component/time/getCurrentSimTimeMicro"},"next":{"title":"getCurrentSimTimeNano","permalink":"/sst-docs/docs/core/component/time/getCurrentSimTimeNano"}}');var r=n(74848),o=n(28453);const s={title:"getCurrentSimTimeMilli"},c=void 0,l={},m=[{value:"Parameters",id:"parameters",level:2},{value:"Example",id:"example",level:2},{value:"Header",id:"header",level:2}];function a(e){const t={code:"code",em:"em",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-cpp",children:"SimTime_t getCurrentSimTimeMilli() const;\n"})}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.em,{children:"Availability:"})," Component, SubComponent, ComponentExtension"]}),"\n",(0,r.jsx)(t.p,{children:"Returns the current simulation time as a time in milliseconds."}),"\n",(0,r.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(t.ul,{children:["\n",(0,r.jsxs)(t.li,{children:[(0,r.jsx)(t.strong,{children:"returns"})," (SimTime_t) Current simulation time in milliseconds"]}),"\n"]}),"\n",(0,r.jsx)(t.h2,{id:"example",children:"Example"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-cpp",children:'output.output("The simulated time is %" PRIu64 " ms\\n", getCurrentSimTimeMilli());\n'})}),"\n",(0,r.jsx)(t.h2,{id:"header",children:"Header"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-cpp",children:"#include <sst/core/component.h> // or\n#include <sst/core/subcomponent.h> // or\n#include <sst/core/componentExtension.h>\n"})})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(a,{...e})}):a(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.