83 lines
2.2 KiB
JSON
83 lines
2.2 KiB
JSON
|
{
|
||
|
"name": "ElapsedTimer",
|
||
|
"module": "Quickshell",
|
||
|
"type": "class",
|
||
|
"super": {
|
||
|
"type": "qt",
|
||
|
"module": "qml.QtQml",
|
||
|
"name": "QtObject"
|
||
|
},
|
||
|
"description": "Measures time between events",
|
||
|
"details": "The ElapsedTimer measures time since its last restart, and is useful\nfor determining the time between events that don't supply it.\n",
|
||
|
"properties": {},
|
||
|
"functions": [
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "real"
|
||
|
},
|
||
|
"name": "elapsed",
|
||
|
"id": "elapsed",
|
||
|
"details": "Return the number of seconds since the timer was last\nstarted or restarted, with nanosecond precision.\n",
|
||
|
"params": []
|
||
|
},
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "int"
|
||
|
},
|
||
|
"name": "elapsedMs",
|
||
|
"id": "elapsedMs",
|
||
|
"details": "Return the number of milliseconds since the timer was last\nstarted or restarted.\n",
|
||
|
"params": []
|
||
|
},
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "int"
|
||
|
},
|
||
|
"name": "elapsedNs",
|
||
|
"id": "elapsedNs",
|
||
|
"details": "Return the number of nanoseconds since the timer was last\nstarted or restarted.\n",
|
||
|
"params": []
|
||
|
},
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "real"
|
||
|
},
|
||
|
"name": "restart",
|
||
|
"id": "restart",
|
||
|
"details": "Restart the timer, returning the number of seconds since\nthe timer was last started or restarted, with nanosecond precision.\n",
|
||
|
"params": []
|
||
|
},
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "int"
|
||
|
},
|
||
|
"name": "restartMs",
|
||
|
"id": "restartMs",
|
||
|
"details": "Restart the timer, returning the number of milliseconds since\nthe timer was last started or restarted.\n",
|
||
|
"params": []
|
||
|
},
|
||
|
{
|
||
|
"ret": {
|
||
|
"type": "qt",
|
||
|
"module": "qml",
|
||
|
"name": "int"
|
||
|
},
|
||
|
"name": "restartNs",
|
||
|
"id": "restartNs",
|
||
|
"details": "Restart the timer, returning the number of nanoseconds since\nthe timer was last started or restarted.\n",
|
||
|
"params": []
|
||
|
}
|
||
|
],
|
||
|
"signals": {},
|
||
|
"variants": {}
|
||
|
}
|