Skip to content

Commit

Permalink
Fixed return value of profile_timer_script::time
Browse files Browse the repository at this point in the history
  • Loading branch information
qweasdd136963 committed Sep 30, 2018
1 parent b148872 commit b1883eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrScriptEngine/ScriptEngineScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct profile_timer_script
float time() const
{
using namespace std::chrono;
return float(duration_cast<milliseconds>(accumulator).count()) * 1000000.f;
return float(duration_cast<microseconds>(accumulator).count());
}
};

Expand Down

0 comments on commit b1883eb

Please sign in to comment.