# AudioSourceComponent::GetTime **命名空间**: `XCEngine::Components` **类型**: `method` **头文件**: `XCEngine/Components/AudioSourceComponent.h` ## 签名 ```cpp float GetTime() const; ``` ## 作用 返回 `static_cast(m_lastingTime)`。 ## 当前实现 - 返回 `static_cast(m_lastingTime)`。 ## 相关文档 - [AudioSourceComponent](AudioSourceComponent.md) - [SetTime](SetTime.md)